Class: HtmlGrid::DivList

Inherits:
DivComposite show all
Defined in:
lib/htmlgrid/divlist.rb

Constant Summary

Constants inherited from AbstractComposite

AbstractComposite::CSS_CLASS, AbstractComposite::CSS_ID, AbstractComposite::CSS_ID_MAP, AbstractComposite::CSS_MAP, AbstractComposite::CSS_STYLE_MAP, AbstractComposite::DEFAULT_CLASS, AbstractComposite::LABELS, AbstractComposite::LEGACY_INTERFACE, AbstractComposite::LOOKANDFEEL_MAP, AbstractComposite::SYMBOL_MAP

Constants inherited from Component

Component::CSS_CLASS, Component::CSS_ID, Component::HTML_ATTRIBUTES, Component::HTTP_HEADERS, Component::LABEL

Instance Attribute Summary

Attributes inherited from Component

#attributes, #dojo_tooltip, #label, #model, #value

Instance Method Summary collapse

Methods inherited from DivComposite

#to_html

Methods inherited from TagComposite

#create, #insert_row, #label, #setup_grid, #submit, #tag_attributes

Methods inherited from AbstractComposite

component, #create, #init

Methods inherited from Component

#_to_html, #autofill?, #css_class, #css_class=, #css_id, #css_id=, #dojo_dynamic_html, #dojo_parse_on_load, #dojo_tag, #dojo_title=, #dynamic_html, #escape, #escape_symbols, #formname, #http_headers, #initialize, #label?, #onclick=, #onload=, #onsubmit=, #set_attribute, #tabindex=, #to_html

Constructor Details

This class inherits a constructor from HtmlGrid::Component

Instance Method Details

#composeObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/htmlgrid/divlist.rb', line 9

def compose
  @model&.each_with_index { |item, idx|
    @list_index = idx
    super(item)
  }
  #       if(header = self.class.const_get(:HEADER))
  #         @grid.push(create(header, @model, @session))
  #         @css_grid.push(nil)
  #       end
  #       if(footer = self.class.const_get(:FOOTER))
  #         @grid.push(create(footer, @model, @session))
  #         @css_grid.push(nil)
  #       end
end