Class: FieldTable::Field
- Inherits:
-
Erector::Widget
- Object
- Erector::AbstractWidget
- Erector::XMLWidget
- Erector::HTMLWidget
- Erector::Widget
- FieldTable::Field
- Defined in:
- lib/erector/widgets/field_table.rb
Instance Method Summary collapse
Methods inherited from Erector::Widget
Methods included from Erector::Sass
Methods included from Erector::JQuery
#jquery, #jquery_load, #jquery_ready
Methods included from Erector::Convenience
#css, #dom_id, #javascript, #join, #to_pretty, #to_text, #url
Methods included from Erector::Externals
included, #render_externals, #render_with_externals
Methods included from Erector::Caching
#cache, included, #should_cache?
Methods included from Erector::Needs
Methods inherited from Erector::HTMLWidget
Methods inherited from Erector::XMLWidget
#comment, full_tags, #instruct, #newliney?, self_closing_tags, tag, tag_named
Methods inherited from Erector::AbstractWidget
#call_block, #capture_content, #emit, hyphenize_underscores, hyphenize_underscores=, #initialize, inline, prettyprint_default, #prettyprint_default, prettyprint_default=, #to_a, #to_s, #widget
Methods included from Erector::AfterInitialize
Methods included from Erector::Text
#character, #h, #nbsp, #raw, #text, #text!
Methods included from Erector::Attributes
#format_attributes, #format_sorted, #sort_attributes
Methods included from Erector::Element
#_element, #_empty_element, #element, #empty_element
Instance Method Details
#content ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/erector/widgets/field_table.rb', line 39 def content tr :class => "field_table_field" do th do text @label text ":" unless @label.nil? end td do super # calls the block end if @note td do text @note end end end end |