Skip to content
mattheu edited this page Apr 11, 2013 · 15 revisions

A select field. Options can be set manually by passing an array of option value => option name.

Select Field

Args

  • id string (required)
  • type 'text' (required)
  • options array (required) - Array value is displayed and Array key is used as value.
  • repeatable bool
  • cols int [1-12]

Example Usage

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