Class: PhlexKit::PopoverContent

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/popover/popover_content.rb

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ PopoverContent

Returns a new instance of PopoverContent.



3
# File 'app/components/phlex_kit/popover/popover_content.rb', line 3

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

Instance Method Details

#view_templateObject



4
5
6
# File 'app/components/phlex_kit/popover/popover_content.rb', line 4

def view_template(&)
  div(**mix({ class: "pk-popover-content pk-hidden", data: { phlex_kit__popover_target: "content", state: "closed" } }, @attrs), &)
end