macTime

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 required validation error key if the value is not entered.

ng-required String

Adds required attribute and required validation constraint to the element when the ngRequired expression evaluates to true. Use ngRequired instead of required when you want to data-bind to the required attribute.

ng-pattern String

Sets pattern validation error key if the value does not match the RegExp pattern expression. Expected value is /regexp/ for inline patterns or regexp for patterns defined as scope expressions.

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" />