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”]).
-
#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”]).
137 |
# File 'lib/coradoc/core_model/table.rb', line 137 attribute :cols, :string, collection: true |
#grid ⇒ String?
Note:
Not yet wired by any transformer; reserved for future use
Returns table grid style (‘all’, ‘cols’, ‘rows’, ‘none’).
129 |
# File 'lib/coradoc/core_model/table.rb', line 129 attribute :grid, :string |
#rows ⇒ Array<TableRow>
Returns collection of table rows.
124 |
# File 'lib/coradoc/core_model/table.rb', line 124 attribute :rows, TableRow, collection: true |
#width ⇒ String?
Returns table width (e.g., ‘100%’, ‘500px’).
133 |
# File 'lib/coradoc/core_model/table.rb', line 133 attribute :width, :string |