Skip to content
mattheu edited this page Apr 28, 2013 · 7 revisions

A Time field.

JavaScript timepicker is used for selecting the time.

Data is stored as a string in the format H:i A

Time Field

Args

  • id (string) (required)
  • name (string) (required) Field display name. Used as field label.
  • type 'text' (string) (required)
  • desc (string) Field description. Displayed below label.
  • repeatable (bool)
  • cols (int) [1-12]

Example Usage

array( 
	'id'   => 'example-field-data', 
	'name' => 'A date field', 
	'type' => 'date', 
),