Form
extends Form
in package
Table of Contents
- $formDiv : DivTag
- __construct() : mixed
- Bootstrap Form.
- addInput() : mixed
- Inserts an element into the form.
- addItem() : null|Embedable
- Inserts another element into the form and adjusts its CSS.
Properties
$formDiv
public
DivTag
$formDiv
Methods
__construct()
Bootstrap Form.
public
__construct([array<string, string> $formProperties = [] ][, array<string, string> $formDivProperties = [] ][, mixed $formContents = null ]) : mixed
Parameters
- $formProperties : array<string, string> = []
-
FormTag properties eg. ['enctype' => 'multipart/form-data']
- $formDivProperties : array<string, string> = []
-
FormDiv propertise eg. ['class'=>'form-row align-items-center']
- $formContents : mixed = null
-
Any other initial content
Tags
Return values
mixed —addInput()
Inserts an element into the form.
public
addInput(mixed $input[, string $caption = null ][, string $placeholder = null ][, string $helptext = null ]) : mixed
Parameters
- $input : mixed
-
Input element
- $caption : string = null
-
Caption
- $placeholder : string = null
-
Placeholder text
- $helptext : string = null
-
Additional help text
Return values
mixed —addItem()
Inserts another element into the form and adjusts its CSS.
public
addItem(mixed $pageItem[, string $pageItemName = null ]) : null|Embedable
Parameters
- $pageItem : mixed
-
Value or EaseObject with draw() method
- $pageItemName : string = null
-
The name under which the object is inserted into the tree
Return values
null|Embedable —Reference to the inserted object