Trigger

Trigger implements OutputableInterface

Trigger

Methods

__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


Last updated : September 15, 2018 b92362d