Class: PhlexKit::DialogTitle

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/dialog/dialog_title.rb

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ DialogTitle

Returns a new instance of DialogTitle.



3
# File 'app/components/phlex_kit/dialog/dialog_title.rb', line 3

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

Instance Method Details

#view_templateObject



4
# File 'app/components/phlex_kit/dialog/dialog_title.rb', line 4

def view_template(&) = h3(**mix({ class: "pk-dialog-title" }, @attrs), &)