Recommend this page to a friend! |
Classes of Jorge Castro | FormOne | README.md | Download |
|
DownloadFormOneCreates HTML web Form on PHP Instead of write this code
Use instead this one
render()It's the end of the chain. It generates the end result (html) start()Start a form (<form>) end()End a form (</form>) idForm($idForm)It sets the identifier of the current form. prefix($prefix)It marks the prefix used by the name fields. Example "frm_" name($name)Sets the name of the current chain. > Note: if id() is not set at the end of the chain then, it also sets the id id($id)it sets the id of the current chain. > Note: if name() is not set at the end of the chain then, it also sets the name disabled($disabled=true)It sets the attribute disable of the chain type($type)| type | Description |
|----------|-------------------------|
| select | addClass($classes)It adds a class to the current element. You could add many classes using different calls. Examples:
classType($type,$classes)It adds a class to all elements of a type
value($value)It sets the current value, for example the default value of a textbox itemValue($value)It sets the value of the element. It's different to value because it's used when the value is "checked" label($label)It sets the label of the element. It is used for label,checkbox,radiobuttons and buttons (inner html) addItem($idOrArray,$text=null,$extra=null)It adds a simple item to a list. It is commonly used by type="select"
addItems($items)it adds multiple items to a list.
addExtra($type,$value=null)addAttr($type,$value=null)onClick($js)onChange($js)addJScript($type,$js)bind($bind)inner($htmlInner)readonly($readonly=true)required($required=true)Example
it renders
version
License.Copyright Jorge Castro Castillo Eftec 2018 This program is supplied as dual license, LGPLV2 or commercial. |