Class: Railsboot::Table::BodyComponent

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

Overview

ViewComponent: renders the body block.

Instance Method Summary collapse

Constructor Details

#initialize(**html_attributes) ⇒ BodyComponent

Returns a new instance of BodyComponent.

Parameters:

  • html_attributes (Hash)

    additional HTML attributes applied to the rendered element

Options Hash (**html_attributes):

  • :class (String)

    CSS classes applied to the rendered tag



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

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