Trigger
Trigger implements OutputableInterface
Trigger
- Full name: \Gibbon\Forms\Layout\Trigger
- This class implements: Warning: strrchr() expects parameter 1 to be string, object given in /Users/sankuipe/Desktop/Localhost/documentor/src/Extension/TwigMarkdownAnchorLink.php on line 108
Methods
- __construct — Create a trigger to toggle visibility of the specified CSS/jQuery selector.
- onSelect — Link this trigger to a select input by name.
- onCheckbox — Link this trigger to a checkbox input by name.
- onRadio — Link this trigger to a radio input by name.
- when — Set which value the trigger should respond to.
- whenNot — Set the trigger to respond to all values except the specified one.
- getOutput — Get the javascript output of the trigger.
__construct
Create a trigger to toggle visibility of the specified CSS/jQuery selector.
Trigger::__construct( string $selector )
onSelect
Link this trigger to a select input by name.
Trigger::onSelect( string $name ): self
Returns Self: This method can be chained.
onCheckbox
Link this trigger to a checkbox input by name.
Trigger::onCheckbox( string $name ): self
Returns Self: This method can be chained.
onRadio
Link this trigger to a radio input by name.
Trigger::onRadio( string $name ): self
Returns Self: This method can be chained.
when
Set which value the trigger should respond to.
Trigger::when( string $value ): self
Returns Self: This method can be chained.
whenNot
Set the trigger to respond to all values except the specified one.
Trigger::whenNot( string $value ): self
Returns Self: This method can be chained.
getOutput
Get the javascript output of the trigger.
Trigger::getOutput( ): string
Return Value:
string