Class: PhlexKit::PopoverTrigger
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::PopoverTrigger
- Defined in:
- app/components/phlex_kit/popover/popover_trigger.rb
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ PopoverTrigger
constructor
A new instance of PopoverTrigger.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ PopoverTrigger
Returns a new instance of PopoverTrigger.
3 |
# File 'app/components/phlex_kit/popover/popover_trigger.rb', line 3 def initialize(**attrs) = (@attrs = attrs) |
Instance Method Details
#view_template ⇒ Object
4 5 6 |
# File 'app/components/phlex_kit/popover/popover_trigger.rb', line 4 def view_template(&) div(**mix({ class: "pk-popover-trigger", data: { phlex_kit__popover_target: "trigger", action: "pointerdown->phlex-kit--popover#armToggle click->phlex-kit--popover#toggle" } }, @attrs), &) end |