Actions

Difference between revisions of "Combo form field type"

From Joomla! Documentation

(new document (in English))
 
(Type should be "Combo" not "Combobox")
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
  
 
* '''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 ''combo''.
* '''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="combo" label="MyEditBox" description="myeditbox_Desc" size="7" />
size="7" />
+
 
</source>
 
</source>
  
 
[[Category:Standard form field types]]
 
[[Category:Standard form field types]]

Latest revision as of 03:53, 4 November 2014

Provides a combobox field.

  • name (mandatory) is the unique name of the parameter.
  • type (mandatory) must be combo.
  • 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="combo" label="MyEditBox" description="myeditbox_Desc" size="7" />