phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
FieldsTrait.php File Reference

Go to the source code of this file.

Namespaces

 Ajax\semantic\html\collections\form\traits
 

Functions

 addItem ($item)
 
 getItem ($index)
 
 count ()
 
 createItem ($value)
 
 createCondition ($value)
 
 addInputs ($inputs, $fieldslabel=null)
 
 setFieldsPropertyValues ($property, $values)
 Sets the values of a property for each Field of each item in the collection. More...
 
 addFieldRule ($index, $type, $prompt=NULL, $value=NULL)
 
 addFieldRules ($index, $rules)
 
 addDropdown ($identifier, $items=array(), $label=NULL, $value=NULL, $multiple=false)
 Adds a new dropdown element. More...
 
 addButtonGroups ($identifier, $elements=[], $asIcons=false)
 Adds a new button groups. More...
 
 addDropdownButton ($identifier, $value, $items=[], $asCombo=false, $icon=null)
 Adds a button with a dropdown button. More...
 
 addInput ($identifier, $label=NULL, $type="text", $value=NULL, $placeholder=NULL)
 
 addTextarea ($identifier, $label, $value=NULL, $placeholder=NULL, $rows=5)
 
 addPassword ($identifier, $label=NULL)
 
 addButton ($identifier, $value, $cssStyle=NULL, $onClick=NULL)
 
 addButtonIcon ($identifier, $icon, $cssStyle=NULL, $onClick=NULL)
 
 addCheckbox ($identifier, $label=NULL, $value=NULL, $type=NULL)
 
 addRadio ($identifier, $name, $label=NULL, $value=NULL)
 
 addElement ($identifier, $content, $label, $tagName="div", $baseClass="")
 

Variables

trait FieldsTrait