/
KenedoProperty Type Dropdown
KenedoProperty Type Dropdown
PHP class: KenedoPropertyDropdown
Recommended column type: Depending on configured choices
Object var: As property name
With the type dropdown you display a set of choices (defined in the property settings as key/value pairs), the keys are stored in the DB column.
Note: The type ‘radio’ works the same way with the same settings and displays the choices as radio buttons.
Example display in backend edit screens
Typical Property Settings Array
$propDefs['question_type'] = array (
'name'=>'question_type',
'label'=>KText::_('FIELD_LABEL_QUESTION_TYPE'),
'type'=>'dropdown',
'choices'=>array(
'textbox' => KText::_('As text box'),
'textarea' => KText::_('As multi line text box'),
'checkbox' => KText::_('As checkbox'),
'radiobuttons' => KText::_('As radio buttons'),
'dropdown' => KText::_('As dropdown'),
'upload' => KText::_('As file upload'),
'calendar' => KText::_('As calendar'),
'colorpicker' => KText::_('As color picker'),
'ralcolorpicker' => KText::_('As RAL color picker'),
'images' => KText::_('As clickable images'),
'slider' => KText::_('As slider'),
'choices' => KText::_('As choices plus text field'),
),
'default'=>'textbox',
'positionForm'=>6000,
);
Property settings
choices
Required: yes
Valid Values: associative array of strings - keys are what’s stored in the column, values are displayed in the dropdown
default
Required: no
Valid values: string (one of the keys in the ‘choices’ setting)
Define the value that should be selected initially
, multiple selections available,
Related content
KenedoProperty Type Radio
KenedoProperty Type Radio
More like this
KenedoProperty Type String
KenedoProperty Type String
More like this
Kenedo Properties
Kenedo Properties
More like this
KenedoProperty Type ID
KenedoProperty Type ID
More like this
Add properties to built-in models
Add properties to built-in models
More like this
KenedoProperty Type Boolean
KenedoProperty Type Boolean
More like this