Class: TableRowComponentPreview

Inherits:
ViewComponent::Preview
  • Object
show all
Defined in:
lib/alveole/previews/table_row_component_preview.rb

Instance Method Summary collapse

Instance Method Details

#defaultObject



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_actionsObject



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