Class: Coradoc::CoreModel::Table
- Defined in:
- lib/coradoc/core_model/table.rb
Overview
Represents a table in a document
Tables contain rows of cells and support various formatting options like frame, grid, column widths, and styling.
Instance Attribute Summary collapse
-
#cols ⇒ Array<String>?
Column width specifications (e.g., [“1”, “2”, “3”]).
-
#frame ⇒ String?
Table frame style (‘all’, ‘topbot’, ‘sides’, ‘none’).
-
#grid ⇒ String?
Table grid style (‘all’, ‘cols’, ‘rows’, ‘none’).
-
#rows ⇒ Array<TableRow>
Collection of table rows.
-
#width ⇒ String?
Table width (e.g., ‘100%’, ‘500px’).
Attributes inherited from Base
#element_attributes, #id, #metadata_entries, #title
Method Summary
Methods inherited from Base
#accept, #attr, #metadata, #semantically_equivalent?, #set_attr, #set_metadata
Instance Attribute Details
#cols ⇒ Array<String>?
Returns column width specifications (e.g., [“1”, “2”, “3”]).
165 |
# File 'lib/coradoc/core_model/table.rb', line 165 attribute :cols, :string, collection: true |
#frame ⇒ String?
Populated by HTML converter only
Returns table frame style (‘all’, ‘topbot’, ‘sides’, ‘none’).
152 |
# File 'lib/coradoc/core_model/table.rb', line 152 attribute :frame, :string |
#grid ⇒ String?
Not yet wired by any transformer; reserved for future use
Returns table grid style (‘all’, ‘cols’, ‘rows’, ‘none’).
157 |
# File 'lib/coradoc/core_model/table.rb', line 157 attribute :grid, :string |
#rows ⇒ Array<TableRow>
Returns collection of table rows.
147 |
# File 'lib/coradoc/core_model/table.rb', line 147 attribute :rows, TableRow, collection: true |
#width ⇒ String?
Returns table width (e.g., ‘100%’, ‘500px’).
161 |
# File 'lib/coradoc/core_model/table.rb', line 161 attribute :width, :string |