Class: PhlexKit::SheetTrigger

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/sheet/sheet_trigger.rb

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ SheetTrigger

Returns a new instance of SheetTrigger.



3
# File 'app/components/phlex_kit/sheet/sheet_trigger.rb', line 3

def initialize(**attrs) = (@attrs = attrs)

Instance Method Details

#view_templateObject



4
# File 'app/components/phlex_kit/sheet/sheet_trigger.rb', line 4

def view_template(&) = div(**mix({ class: "pk-sheet-trigger", data: { action: "click->phlex-kit--sheet#open" } }, @attrs), &)