Class: TipTap::Nodes::TableRow
- Inherits:
-
TipTap::Node
- Object
- TipTap::Node
- TipTap::Nodes::TableRow
- Defined in:
- lib/tip_tap/nodes/table_row.rb
Instance Attribute Summary
Attributes included from HtmlRenderable
Attributes included from HasContent
Instance Method Summary collapse
Methods included from PlainTextRenderable
Methods included from JsonRenderable
#include_empty_content_in_json?, #to_h
Methods included from HtmlRenderable
#html_class_name, #html_tag, included, #to_html
Methods included from HasContent
#add_content, #blank?, #each, #find_node, included, #initialize, #size
Methods included from Registerable
Instance Method Details
#table_cell(&block) ⇒ Object
11 12 13 14 15 |
# File 'lib/tip_tap/nodes/table_row.rb', line 11 def table_cell(&block) raise ArgumentError, "Block required" if block.nil? add_content(TableCell.new(&block)) end |
#table_header(&block) ⇒ Object
17 18 19 20 21 |
# File 'lib/tip_tap/nodes/table_row.rb', line 17 def table_header(&block) raise ArgumentError, "Block required" if block.nil? add_content(TableHeader.new(&block)) end |