Class: TableRowComponentPreview
- Inherits:
-
ViewComponent::Preview
- Object
- ViewComponent::Preview
- TableRowComponentPreview
- Defined in:
- lib/alveole/previews/table_row_component_preview.rb
Instance Method Summary collapse
Instance Method Details
#default ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/alveole/previews/table_row_component_preview.rb', line 4 def default render(TableRowComponent.new) do |tablerow| tablerow.actions do tag.td('Example actions') end tag.td('Example content') end end |
#without_actions ⇒ Object
13 14 15 16 17 |
# File 'lib/alveole/previews/table_row_component_preview.rb', line 13 def without_actions render(TableRowComponent.new) do |_tablerow| tag.td('Example content') end end |