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’).
-
#bgcolor ⇒ String?
Background color (CSS color value).
-
#color ⇒ String?
Text color (CSS color value).
-
#colspan ⇒ Integer?
Number of columns to span.
-
#content ⇒ String?
Text content of the cell.
-
#header ⇒ Boolean
Whether this is a header cell.
-
#height ⇒ String?
Cell height (CSS height value).
-
#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’).
-
#width ⇒ String?
Cell width (CSS width value).
Attributes inherited from Base
#element_attributes, #id, #metadata_entries, #title
Method Summary
Methods included from ChildrenContent
#children=, #flat_text, included, #initialize, #renderable_content, #to_hash
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’).
30 |
# File 'lib/coradoc/core_model/table.rb', line 30 attribute :alignment, :string |
#bgcolor ⇒ String?
Populated by HTML converter only
Returns background color (CSS color value).
56 |
# File 'lib/coradoc/core_model/table.rb', line 56 attribute :bgcolor, :string |
#color ⇒ String?
Populated by HTML converter only
Returns text color (CSS color value).
61 |
# File 'lib/coradoc/core_model/table.rb', line 61 attribute :color, :string |
#colspan ⇒ Integer?
Returns number of columns to span.
38 |
# File 'lib/coradoc/core_model/table.rb', line 38 attribute :colspan, :integer |
#content ⇒ String?
Returns text content of the cell.
26 |
# File 'lib/coradoc/core_model/table.rb', line 26 attribute :content, :string |
#header ⇒ Boolean
Returns whether this is a header cell.
46 |
# File 'lib/coradoc/core_model/table.rb', line 46 attribute :header, :boolean, default: -> { false } |
#height ⇒ String?
Populated by HTML converter only
Returns cell height (CSS height value).
71 |
# File 'lib/coradoc/core_model/table.rb', line 71 attribute :height, :string |
#rowspan ⇒ Integer?
Returns number of rows to span.
42 |
# File 'lib/coradoc/core_model/table.rb', line 42 attribute :rowspan, :integer |
#style ⇒ String?
Returns cell style (‘default’, ‘strong’, ‘emphasis’, ‘monospace’, ‘asciidoc’, ‘literal’, ‘verse’).
51 |
# File 'lib/coradoc/core_model/table.rb', line 51 attribute :style, :string |
#vertical_alignment ⇒ String?
Returns vertical alignment (‘top’, ‘middle’, ‘bottom’).
34 |
# File 'lib/coradoc/core_model/table.rb', line 34 attribute :vertical_alignment, :string |
#width ⇒ String?
Populated by HTML converter only
Returns cell width (CSS width value).
66 |
# File 'lib/coradoc/core_model/table.rb', line 66 attribute :width, :string |