Class: UI::DialogHeader

Inherits:
Phlex::HTML
  • Object
show all
Includes:
DialogHeaderBehavior
Defined in:
app/components/ui/dialog_header.rb

Instance Method Summary collapse

Methods included from DialogHeaderBehavior

#dialog_header_base_classes, #dialog_header_classes, #dialog_header_html_attributes

Constructor Details

#initialize(classes: nil) ⇒ DialogHeader

Returns a new instance of DialogHeader.



6
7
8
# File 'app/components/ui/dialog_header.rb', line 6

def initialize(classes: nil)
  @classes = classes
end

Instance Method Details

#view_template(&block) ⇒ Object



10
11
12
13
14
# File 'app/components/ui/dialog_header.rb', line 10

def view_template(&block)
  div(**dialog_header_html_attributes) do
    yield if block_given?
  end
end