Components
Element that exists of several components.
- Full name:
\Qubus\Form\FormBuilder\Components
Properties
components
Components
Methods
initComponents
Initialise default components.
Throws:
newComponent
Create / init new component.
public newComponent(string|null $name = null, string|null $type = null, array $options = [], array $attr = []): \Qubus\Form\FormBuilder\Element
Parameters:
| Parameter | Type | Description |
|---|---|---|
$name | string|null | Component name |
$type | string|null | Element type |
$options | array | Element options |
$attr | array | Element attr |
Throws:
getComponent
Get a component.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$name | string |
Throws:
getLabel
Get label component.
Throws:
getContainer
Get the container component.
Throws:
render
Render the element to HTML.
Throws:
renderElement
Render to base HTML element.
- This method is abstract.