Function registerTrigger

Registers the given trigger as a widget to be automatically configured for all elements that have a trigger specification with the given name.

See the Triggers page for an explanation of the string specification syntax.

IMPORTANT: If a trigger by that name is already registered, the current call does nothing, even if the remaining arguments differ.