A directive for creating a time input field. Time input can use any ng-
attributes support by text input type.
Parameters:
Name | Type | Description |
---|---|---|
ng-model |
String | Assignable angular expression to data-bind to Clearing model by setting it to null or '' will set model back to default value |
name |
String | Property name of the form under which the control is published |
required |
String | Adds |
ng-required |
String | Adds |
ng-pattern |
String | Sets |
ng-change |
String | Angular expression to be executed when input changes due to user interaction with the input element. |
ng-disabled |
String | Enable or disable time input |
mac-time-default |
String | If model is undefined, use this as the starting value (default 12:00 PM) |
Example
Basic setup
<mac-time id="input-start-time" ng-model="startTime" mac-time-default="11:59 PM" />