Class: HtmlGrid::Image
- Inherits:
- 
      NamedComponent
      
        - Object
- Component
- NamedComponent
- HtmlGrid::Image
 
- Defined in:
- lib/htmlgrid/image.rb
Constant Summary
Constants inherited from Component
Component::CSS_CLASS, Component::CSS_ID, Component::HTML_ATTRIBUTES, Component::HTTP_HEADERS, Component::LABEL
Instance Attribute Summary
Attributes inherited from NamedComponent
Attributes inherited from Component
#attributes, #dojo_tooltip, #model, #value
Instance Method Summary collapse
Methods inherited from NamedComponent
#data_origin, #error?, #initialize
Methods inherited from Component
#_to_html, #autofill?, #css_class, #css_class=, #css_id, #css_id=, #dojo_dynamic_html, #dojo_parse_widgets, #dojo_tag, #dojo_title=, #dynamic_html, #escape, #escape_symbols, #formname, #http_headers, #initialize, #label=, #label?, #onclick=, #onload=, #onsubmit=, #set_attribute, #tabindex=
Constructor Details
This class inherits a constructor from HtmlGrid::NamedComponent
Instance Method Details
#init ⇒ Object
| 31 32 33 34 35 36 37 38 | # File 'lib/htmlgrid/image.rb', line 31 def init super if(@lookandfeel) @attributes['src'] = @lookandfeel.resource(@name) @attributes['alt'] = @lookandfeel.lookup(@name) end #@attributes['border'] = "0" end | 
#to_html(context) ⇒ Object
@attributes = “0”
| 39 40 41 | # File 'lib/htmlgrid/image.rb', line 39 def to_html(context) context.img(@attributes) end |