<fx-trigger>

Description

Generic container for action buttons, links etc. which can execute an action when activated.

<fx-trigger> can also be bound and therefore become readonly or non-relevant.

Attributes

NameDescriptionDefault
refXPath reference pointing to the bound node-
activate-on-focusOpt-in: also run the trigger’s actions when the slotted element receives focus (e.g. plain Tab-only keyboard navigation), not just on click/Enter/Space. Not the default - every fx-trigger in an app would otherwise fire its action (an fx-delete, say) just from being tabbed past. A single mouse click still only performs the actions once (click and the focus it causes are deduplicated internally). Useful for “focus follows selection” tree/listbox patterns.-

Individual action children can restrict which of the two triggering events they respond to via their own event attribute (e.g. event="click" on one action while others in the same trigger run for either) - see the action elements’ own docs.

Examples