Class: Coradoc::CoreModel::TableCell
- Includes:
- ChildrenContent
- Defined in:
- lib/coradoc/core_model/table.rb
Overview
Instance Attribute Summary collapse
-
#alignment ⇒ String?
Horizontal text alignment (‘left’, ‘center’, ‘right’).
-
#colspan ⇒ Integer?
Number of columns to span.
-
#content ⇒ String?
Text content of the cell.
-
#header ⇒ Boolean
Whether this is a header cell.
-
#rowspan ⇒ Integer?
Number of rows to span.
-
#style ⇒ String?
Cell style (‘default’, ‘strong’, ‘emphasis’, ‘monospace’, ‘asciidoc’, ‘literal’, ‘verse’).
-
#vertical_alignment ⇒ String?
Vertical alignment (‘top’, ‘middle’, ‘bottom’).
Attributes inherited from Base
#element_attributes, #id, #metadata_entries, #title
Method Summary
Methods included from ChildrenContent
#flat_text, included, #renderable_content
Methods inherited from Base
#accept, #attr, #metadata, #semantically_equivalent?, #set_attr, #set_metadata
Instance Attribute Details
#alignment ⇒ String?
Returns horizontal text alignment (‘left’, ‘center’, ‘right’).
32 |
# File 'lib/coradoc/core_model/table.rb', line 32 attribute :alignment, :string |
#colspan ⇒ Integer?
Returns number of columns to span.
40 |
# File 'lib/coradoc/core_model/table.rb', line 40 attribute :colspan, :integer |
#content ⇒ String?
Returns text content of the cell.
28 |
# File 'lib/coradoc/core_model/table.rb', line 28 attribute :content, :string |
#header ⇒ Boolean
Returns whether this is a header cell.
48 |
# File 'lib/coradoc/core_model/table.rb', line 48 attribute :header, :boolean, default: -> { false } |
#rowspan ⇒ Integer?
Returns number of rows to span.
44 |
# File 'lib/coradoc/core_model/table.rb', line 44 attribute :rowspan, :integer |
#style ⇒ String?
Returns cell style (‘default’, ‘strong’, ‘emphasis’, ‘monospace’, ‘asciidoc’, ‘literal’, ‘verse’).
53 |
# File 'lib/coradoc/core_model/table.rb', line 53 attribute :style, :string |
#vertical_alignment ⇒ String?
Returns vertical alignment (‘top’, ‘middle’, ‘bottom’).
36 |
# File 'lib/coradoc/core_model/table.rb', line 36 attribute :vertical_alignment, :string |