Class: Panda::Editor::Blocks::Table
- Defined in:
- lib/panda/editor/blocks/table.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Panda::Editor::Blocks::Base
Instance Method Details
#render ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/panda/editor/blocks/table.rb', line 7 def render content = data['content'] with_headings = data['withHeadings'] html_safe(<<~HTML) <div class="overflow-x-auto"> <table class="min-w-full"> #{render_rows(content, with_headings)} </table> </div> HTML end |