Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

timepicker #332

Closed
Closed
@ProLoser

Description

@ProLoser

Normally I wouldn't say anything, but I was looking at the timepicker and it's ridiculously easy to implement using native angular. I thought it might be worth taking a crack at to help appease the whiny people.

Something like...

  <input ui-mask="99:99 aa" ng-model="time" bs-time>
  <div class="popover show bottom">
    <div class="arrow"></div>
    <table class="form-inline">
      <tr class="text-center">
        <td><a ng-click="hours=hours+1" class="icon-chevron-up"></a></td>
        <td>&nbsp;</td>
        <td><a ng-click="minutes=minutes+1" class="icon-chevron-up"></a></td>
        <td>&nbsp;</td>
        <td><a ng-click="toggleMeridian()" class="icon-chevron-up"></a></td>
      </tr>
      <tr>
        <td><input class="span1 text-center" type="text" ng-model="hours" min="1"></td>
        <td>:</td>
        <td><input class="span1 text-center" type="text" ng-model="minutes" min="0"></td>
        <td>&nbsp;</td>
        <td><input class="span1 text-center" type="text" ng-model="meridian"></td>
      </tr>
      <tr class="text-center">
        <td><a ng-click="hours=hours-1" class="icon-chevron-down"></a></td>
        <td>&nbsp;</td>
        <td><a ng-click="minutes=minutes-1" class="icon-chevron-down"></a></td>
        <td>&nbsp;</td>
        <td><a ng-click="toggleMeridian()" class="icon-chevron-down"></a></td>
      </tr>
    </table>
  </div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions