Class: UI::DrawerFooter

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

Instance Method Summary collapse

Methods included from DrawerFooterBehavior

#drawer_footer_base_classes, #drawer_footer_classes, #drawer_footer_html_attributes

Constructor Details

#initialize(classes: nil, **attributes) ⇒ DrawerFooter

Returns a new instance of DrawerFooter.



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

def initialize(classes: nil, **attributes)
  @classes = classes
  @attributes = attributes
end

Instance Method Details

#view_template(&block) ⇒ Object



11
12
13
14
15
# File 'app/components/ui/drawer_footer.rb', line 11

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