MaximeRainville\SilverstripeReact\BootstrapComponent
Synopsis
trait BootstrapComponent
{
- // members
- private static array $casting = ;
- protected array $attributes = ;
- protected $extraClasses;
- // methods
- public void forTemplate()
- public void getTemplates()
- public void getAttributesHTML()
- public $this setAttribute()
- public string getAttribute()
- public array getAttributes()
- public string extraClass()
- public $this addExtraClass()
- public $this removeExtraClass()
- public abstract void getProps()
- public abstract void getComponent()
Hierarchy
Members
private
- $casting
—
array
People will need to copy this to the class implementing the trait if they define their own $casting
protected
- $attributes
- $extraClasses
Methods
public
- addExtraClass() — Add a CSS-class to the form-container. If needed, multiple classes can be added by delimiting a string with spaces.
- extraClass() — Compiles all CSS-classes.
- forTemplate()
- getAttribute()
- getAttributes()
- getAttributesHTML()
- getComponent()
- getProps()
- getTemplates()
- removeExtraClass() — Remove a CSS-class from the form-container. Multiple class names can be passed through as a space delimited string
- setAttribute()