Module: Weft::Context::Modifiers
- Included in:
- Weft::Context
- Defined in:
- lib/weft/context/modifiers.rb
Overview
The modifier rank of the element-kwarg grammar: kwargs that adjust whatever htmx wiring the interaction rank generated, applied as call-site overrides after expansion. swap:/target: revert to plain chrome when no interaction kwarg claims the element (target: is real HTML — ); trigger:/push_url:/confirm: map standalone (all inherit down the DOM in htmx).
Constant Summary collapse
- MODIFIER_KEYS =
%i[trigger push_url confirm swap target].freeze
- CLAIMING_MODIFIER_KEYS =
Modifier kwargs that pull an element into expansion on their own. :target is deliberately absent — bare target: stays honest HTML chrome, untouched.
(MODIFIER_KEYS - [:target]).freeze
Class Method Summary collapse
-
.warned_standalone_swaps ⇒ Object
Warn-once registry for standalone swap: kwargs, keyed by the nearest component class (nil outside any component).
Class Method Details
.warned_standalone_swaps ⇒ Object
Warn-once registry for standalone swap: kwargs, keyed by the nearest component class (nil outside any component).
25 26 27 |
# File 'lib/weft/context/modifiers.rb', line 25 def self.warned_standalone_swaps @warned_standalone_swaps ||= Set.new end |