$form
$form : \Charcoal\Ui\Form\FormInterface
Store a reference to the parent form widget.
A Generic Form Group
Concreete implementation of \Charcoal\Ui\FormGroup\FormGroupInterface.
$form : \Charcoal\Ui\Form\FormInterface
Store a reference to the parent form widget.
$formInputBuilder : \Charcoal\Ui\FormInput\FormInputBuilder
Store the builder instance for the current class.
$layoutBuilder : \Charcoal\Ui\Layout\LayoutBuilder
$inputs : array<mixed,\Charcoal\Ui\FormInput\FormInputInterface>
The group's collection of fields.
$layout : \Charcoal\Ui\Layout\LayoutInterface
setInputCallback(callable $cb) : \Charcoal\Ui\FormGroup\FormGroupInterface
callable | $cb | The input callback. |
Chainable
setForm(\Charcoal\Ui\Form\FormInterface $form) : \Charcoal\Ui\FormGroup\FormGroupInterface
\Charcoal\Ui\Form\FormInterface | $form | The parent form object. |
Chainable
form() : \Charcoal\Ui\Form\FormInterface
setL10nMode(string $mode) : \Charcoal\Ui\FormGroup\FormGroupInterface
string | $mode | The l10n mode. |
Chainable
setInputs(array $inputs) : \Charcoal\Ui\FormGroup\FormGroupInterface
array | $inputs | The group inputs. |
Chainable
addInput(string $inputIdent, array|\Charcoal\Ui\FormInput\FormInputInterface $input) : \Charcoal\Ui\FormGroup\FormGroupInterface
string | $inputIdent | The input identifier. |
array|\Charcoal\Ui\FormInput\FormInputInterface | $input | The input object or structure. |
If the ident argument is not a string or if the input is not valid.
Chainable
inputs(callable $inputCallback = null) : array<mixed,\Charcoal\Ui\FormGroup\FormGroupInterface>|\Charcoal\Ui\FormGroup\Generator
Form Input generator.
callable | $inputCallback | Optional. Input callback. |
setLayoutBuilder(\Charcoal\Ui\Layout\LayoutBuilder $builder) : \Charcoal\Ui\Layout\DashboardInterface
\Charcoal\Ui\Layout\LayoutBuilder | $builder | The layout builder, to create customized layout object(s). |
Chainable
setLayout(\Charcoal\Ui\Layout\LayoutInterface|array $layout) : \Charcoal\Ui\Layout\DashboardInterface
\Charcoal\Ui\Layout\LayoutInterface|array | $layout | The layout object or structure. |
If the layout argument is not an object or layout structure.
Chainable
layout() : \Charcoal\Ui\Layout\LayoutInterface
setActive(boolean $active) : \Charcoal\Ui\AbstractUiItem
Activates/deactivates the UI item.
boolean | $active | Activate (TRUE) or deactivate (FALSE) the UI item. |
Chainable
setType(string|null $type) : \Charcoal\Ui\UiItemInterface
Set the UI item type.
string|null | $type | The UI item type. |
If the type is not a string.
Chainable
setTemplate(string $template) : \Charcoal\Ui\UiItemInterface
Set the UI item's template.
Usually, a path to a file containing the template to be rendered.
string | $template | A template (identifier). |
If the template is not a string.
Chainable
setTitle(mixed $title) : \Charcoal\Ui\UiItemInterface
Set the UI item's title.
mixed | $title | A title. |
Chainable
setSubtitle(mixed $subtitle) : \Charcoal\Ui\UiItemInterface
Set the UI item's sub-title.
mixed | $subtitle | A sub-title. |
Chainable
setDescription(mixed $description) : \Charcoal\Ui\UiItemInterface
Set the UI item's description.
mixed | $description | A description. |
Chainable
setNotes(mixed $notes) : \Charcoal\Ui\UiItemInterface
Set notes about the UI item.
mixed | $notes | Notes. |
Chainable
setShowTitle(boolean $show) : \Charcoal\Ui\UiItemInterface
Show/hide the UI item's title.
boolean | $show | Show (TRUE) or hide (FALSE) the title. |
Chainable
setShowSubtitle(boolean $show) : \Charcoal\Ui\UiItemInterface
Show/hide the UI item's sub-title.
boolean | $show | Show (TRUE) or hide (FALSE) the sub-title. |
Chainable
setShowDescription(boolean $show) : \Charcoal\Ui\UiItemInterface
Show/hide the UI item's description.
boolean | $show | Show (TRUE) or hide (FALSE) the description. |
Chainable
setShowNotes(boolean $show) : \Charcoal\Ui\UiItemInterface
Show/hide the UI item's notes.
boolean | $show | Show (TRUE) or hide (FALSE) the notes. |
Chainable
setShowHeader(boolean $show) : \Charcoal\Ui\UiItemInterface
Show/hide the UI item's header.
boolean | $show | Show (TRUE) or hide (FALSE) the header. |
Chainable
setShowFooter(boolean $show) : \Charcoal\Ui\UiItemInterface
Show/hide the UI item's footer.
boolean | $show | Show (TRUE) or hide (FALSE) the footer. |
Chainable
setIcon(string $icon) : \Charcoal\Ui\UiItemInterface
Set the path to the item's icon associated with the object.
string | $icon | A path to an image. |
Chainable
setFormInputBuilder(\Charcoal\Ui\FormInput\FormInputBuilder $builder) : \Charcoal\Ui\FormGroup\FormGroupInterface
\Charcoal\Ui\FormInput\FormInputBuilder | $builder | The builder, to create customized form input objects. |
Chainable