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
Description
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> </td>
<td><a ng-click="minutes=minutes+1" class="icon-chevron-up"></a></td>
<td> </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> </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> </td>
<td><a ng-click="minutes=minutes-1" class="icon-chevron-down"></a></td>
<td> </td>
<td><a ng-click="toggleMeridian()" class="icon-chevron-down"></a></td>
</tr>
</table>
</div>
Metadata
Metadata
Assignees
Labels
No labels