Method | Description | Returns |
---|---|---|
__toString() | Get a string representation of the element => render the output html | string |
getType() | Returns the type of the current element. | string |
getChildren() | Collection (BaseElement) | |
getEntity() | string | |
getId() | int | |
getName() | Gets element name. It could be used in html to identify input, e.g. ' '. | string |
getHelp() | Gets help text for the element. It could be used as a tooltip or in HTML as a title attribute, e.g. ' '. | string |
getEditor() | string | |
getText() | Text for the element that usually is used for element's label | string |
getDefaultValue() | string | |
getPlaceholder() | string | |
isRequired() | bool | |
getRegex() | string | |
getPosition() | int | |
getSettings() | array | |
getRevision() | FormRevision | |
getStep() | Step | |
getParent() | ElementGroup | |
isNewRecord() | Check if the record is a new record | bool |
isHierarchicalModel() | Check whether a model is a hierarchical model, i.e. can have children | bool |
getHtml() | Renders default html for a group. Renders group block and calls rendering for every element inside group. Group block tag: fieldset.element-block.element-group-block Label: legend.element-label.element-text All children inputs one by one | string |
Forms\Models\Frontend\ElementGroup
Element group. Some element that has others inside.