Class: Railsboot::Table::HeadComponent

Inherits:
Component
  • Object
show all
Defined in:
app/components/railsboot/table/head_component.rb

Overview

ViewComponent: renders the head block.

Instance Method Summary collapse

Constructor Details

#initialize(**html_attributes) ⇒ HeadComponent

Returns a new instance of HeadComponent.

Parameters:

  • html_attributes (Hash)

    additional HTML attributes applied to the rendered element

Options Hash (**html_attributes):

  • :class (String)

    additional CSS classes, merged with the component's own classes



8
9
10
# File 'app/components/railsboot/table/head_component.rb', line 8

def initialize(**html_attributes)
  @html_attributes = html_attributes
end