FormElements
extends Element
in package
Uses
ElementTrait
This is the 'FormElements' class, a DTO class for the form configuration data.
The items stored in this class will remain immutable (only get methods are available).
This class extends SDK\Core\Dtos\Element, see this class.
Tags
Table of Contents
BUTTON | = 'button' | |
---|---|---|
INPUT | = 'input' | |
OPTION | = 'option' | |
SELECT | = 'select' | |
TEXTAREA | = 'textarea' | |
getButton() | This method returns the button element configuration | : FormElementButton|null |
getInput() | This method returns the input element configuration | : FormElementInput|null |
getOption() | This method returns the option element configuration | : FormElement|null |
getSelect() | This method returns the select element configuration | : FormElement|null |
getTextarea() | This method returns the textarea element configuration | : FormElement|null |
Constants
BUTTON
public
mixed
BUTTON
= 'button'
INPUT
public
mixed
INPUT
= 'input'
OPTION
public
mixed
OPTION
= 'option'
SELECT
public
mixed
SELECT
= 'select'
TEXTAREA
public
mixed
TEXTAREA
= 'textarea'
Methods
getButton()
This method returns the button element configuration
public
getButton() : FormElementButton|null
Return values
FormElementButton|null —getInput()
This method returns the input element configuration
public
getInput() : FormElementInput|null
Return values
FormElementInput|null —getOption()
This method returns the option element configuration
public
getOption() : FormElement|null
Return values
FormElement|null —getSelect()
This method returns the select element configuration
public
getSelect() : FormElement|null
Return values
FormElement|null —getTextarea()
This method returns the textarea element configuration
public
getTextarea() : FormElement|null