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

A simple text input field

Text 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)
  • default (string) Set a default value
  • readonly (bool) Values submitted by readonly fields are not saved.
  • cols (int) [1-12]

Example Usage

array( 
	'id'   => 'example-field-text', 
	'name' => 'A simple text input', 
	'type' => 'text', 
),