jFormer Documentation → jFormer Structure →
The jFormComponent object is the most basic and important building block of jFormer. Each specific type of component type extends this object and is never used directly. These options and methods are generic to all component types.
new JFormComponent[Type](String id, String label[, Array optionArray])
Create a Single Line Text component with a tip:
$singleLineText = new JFormComponentSingleLineText('id', array(
'tip' => 'Sample Tip.
'
));
a jFormerComponet can be added directly to a form, page or section. using the method -> addJFormComponent or addJFormComponentArray
For options and methods specific to each component type, please visit that component's page.
These options are common to all components.
null
HTML | a description for the component, shows underneath the component inside a DIV with the class jFormComponenpescription.
null
Array, [max(int), addButtonText(string), removeButtonText(text)] | see instanceOptions page for more information.
null
Array, [dependentOn(string), display(string), jsFunction(Javascript)[, animationOptions(array)]] | see dependencyOptions page for more information.
null
HTML | a tooltip that displays whenever the component has focus. Gives any extra help or explanation a form user might need.
null
Array | an of validations specific to the component, see the specific component for its validations.
false
Boolean | this option makes the error tip only show up on the first focus on the component if it does not pass validation.
false
Boolean | if true pressing enter while this component has focus submits the form, or advances to the next page.
null
CSS | set the style attribute for the component wrapper div.
null
String | preset the value of the component upon form loading.
These Methods are generic to all JFormComponent objects.
| Name | Arguments | Description |
These Methods are generic to all JFormComponent objects.
| Name | Arguments | Description |
Next Section: Basic Fields
This page was last edited on April 11, 2011 at 11:10am.
0 comments (add a comment)