Difference between revisions of "Combo form field type"

From Joomla! Documentation

(new document (in English))
 
m
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
* '''name''' (mandatory) is the unique name of the parameter.
 
* '''name''' (mandatory) is the unique name of the parameter.
 
* '''type''' (mandatory) must be ''combobox''.
 
* '''type''' (mandatory) must be ''combobox''.
* '''label''' (mandatory) is the descriptive title of the field.
+
* '''label''' (mandatory) (translatable) is the descriptive title of the field.
* '''description''' (optional) tooltip for the form field.
+
* '''description''' (optional) (translatable) tooltip for the form field.
 
* '''class''' (optional) specify your own classes for additonal markup, defaults to "combobox"
 
* '''class''' (optional) specify your own classes for additonal markup, defaults to "combobox"
* '''readonly''' (optiona) set to "true", defaults to false, meaning editable.
+
* '''readonly''' (optional) set to "true", defaults to false, meaning editable.
 
* '''disabled''' (optional) set to "true", defaults to false, meaning enabled.
 
* '''disabled''' (optional) set to "true", defaults to false, meaning enabled.
 
* '''size''' (optional) sets the input size of the field
 
* '''size''' (optional) sets the input size of the field
Line 12: Line 12:
  
 
<source type="php">
 
<source type="php">
<field name="myeditbox" type="combobox"
+
<field name="myeditbox" type="combobox" label="MyEditBox" description="myeditbox_Desc" size="7" />
size="7" />
 
 
</source>
 
</source>
  
 
[[Category:Standard form field types]]
 
[[Category:Standard form field types]]

Revision as of 06:26, 30 November 2013

Provides a combobox field.

  • name (mandatory) is the unique name of the parameter.
  • type (mandatory) must be combobox.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • description (optional) (translatable) tooltip for the form field.
  • class (optional) specify your own classes for additonal markup, defaults to "combobox"
  • readonly (optional) set to "true", defaults to false, meaning editable.
  • disabled (optional) set to "true", defaults to false, meaning enabled.
  • size (optional) sets the input size of the field
  • required (optional) sets whether input is required, defaults to no input required.
<field name="myeditbox" type="combobox" label="MyEditBox" description="myeditbox_Desc" size="7" />