Class: Katalyst::Content::Table
- Defined in:
- app/models/katalyst/content/table.rb
Constant Summary
Constants included from DuplicatesAttachments
DuplicatesAttachments::DUPLICATORS
Constants included from DuplicatesAssociations
DuplicatesAssociations::DUPLICATORS
Instance Attribute Summary
Attributes inherited from Item
#children, #depth, #index, #next_sibling, #parent, #previous_sibling
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Item
config, #dom_id, #heading_style_class, #item_type, #layout?, #show_heading?
Methods included from DuplicatesRichText
Methods included from DuplicatesAttachments
Methods included from DuplicatesAssociations
Class Method Details
.permitted_params ⇒ Object
17 18 19 |
# File 'app/models/katalyst/content/table.rb', line 17 def self.permitted_params super + %i[content heading_rows heading_columns] end |
Instance Method Details
#content=(value) ⇒ Object
25 26 27 28 29 30 31 |
# File 'app/models/katalyst/content/table.rb', line 25 def content=(value) Tables::Importer.call(self, value) set_defaults content end |
#to_plain_text ⇒ Object
21 22 23 |
# File 'app/models/katalyst/content/table.rb', line 21 def to_plain_text content.to_plain_text if visible? end |