Class: TaoUi::Components::TableComponent
- Inherits:
-
TaoOnRails::Components::Base
- Object
- TaoOnRails::Components::Base
- TaoUi::Components::TableComponent
- Defined in:
- lib/tao_ui/components/table_component.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.component_name ⇒ Object
15 16 17 |
# File 'lib/tao_ui/components/table_component.rb', line 15 def self.component_name :table end |
Instance Method Details
#render(&block) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/tao_ui/components/table_component.rb', line 5 def render &block if block_given? table_content = view.capture(builder, &block) table = view.content_tag('table', table_content, class: 'table') view.content_tag tag_name, table, else super end end |