Class: ObjectView::TCell
- Defined in:
- lib/object_view/table.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Element
#acceptable_children, #children, #single_line, #tag
Instance Method Summary collapse
-
#initialize ⇒ TCell
constructor
A new instance of TCell.
Methods inherited from Element
#<<, #add, #add_with_tag, #attr, #attributes, #css_class=, #find_element_with_tag, #id=, #is_acceptable_child?, #on_click=, #render, #render_attributes, #render_children, #style, #style=
Constructor Details
#initialize ⇒ TCell
Returns a new instance of TCell.
113 114 115 116 117 118 |
# File 'lib/object_view/table.rb', line 113 def initialize super() self.single_line = true @tag = "td" self.acceptable_children = [Table, Div, Span, Javascript, Link, String, Header, Paragraph, Ul, Image] end |