FormControlInterface
API reference › HTML Contracts › Form › FormControlInterface
Implemented by 4 types
Defines the contract for form control elements (inputs, selects, textareas, etc.).
Combines rendering capability with attribute management, providing the minimal interface needed for field wrappers to configure and render form controls.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
addAttribute() abstract | Adds or updates a single HTML attribute for the element. | UIAwesome\ |
attributes() abstract | Adds or updates the supplied HTML attributes, preserving all other attributes. | UIAwesome\ |
class() abstract | Sets the class attribute. | UIAwesome\ |
getAttribute() abstract | Returns the value of a single HTML attribute. | UIAwesome\ |
getAttributes() abstract | Returns the array of HTML attributes for the element. | UIAwesome\ |
removeAttribute() abstract | Removes a specific HTML attribute from the element. | UIAwesome\ |
render() abstract | Renders the object as an HTML string. | UIAwesome\ |