ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
Engageable Components have an "engaged" state and will be displayed accordingly. More...
Public Member Functions | |
isEngageable () | |
Returns whether the button is stateful or not. More... | |
withEngagedState (bool $state) | |
Get a copy of the Engageable Button with engaged state for $state=true and with disengaged state for $state=false. More... | |
isEngaged () | |
Returns whether the button is currently engaged or not. More... | |
![]() | |
getCanonicalName () | |
Get the canonical name of the component. More... | |
reduceWith (\Closure $fn) | |
The scheme starts at the leaves of the structure and applies the function to each leave and moves up the tree recursively. More... | |
Engageable Components have an "engaged" state and will be displayed accordingly.
Definition at line 28 of file Engageable.php.
ILIAS\UI\Component\Button\Engageable::isEngageable | ( | ) |
Returns whether the button is stateful or not.
Engageable must be explicitly turned on by initializing the Button with a state (withEngagedState), since not all Buttons are used as toggles and thus should not bear an aria-pressed attribute.
ILIAS\UI\Component\Button\Engageable::isEngaged | ( | ) |
Returns whether the button is currently engaged or not.
ILIAS\UI\Component\Button\Engageable::withEngagedState | ( | bool | $state | ) |
Get a copy of the Engageable Button with engaged state for $state=true and with disengaged state for $state=false.