Class: UiHelpers::DialogOver
- Defined in:
- lib/ui_helpers/elements/dialog_cover.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#height ⇒ Object
Returns the value of attribute height.
-
#left ⇒ Object
Returns the value of attribute left.
-
#text ⇒ Object
Returns the value of attribute text.
-
#top ⇒ Object
Returns the value of attribute top.
-
#width ⇒ Object
Returns the value of attribute width.
Attributes inherited from Element
Instance Method Summary collapse
Methods inherited from Element
#capture, #classes, #classes=, #initialize, #style=, #tag, #with_html_options
Constructor Details
This class inherits a constructor from UiHelpers::Element
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
4 5 6 |
# File 'lib/ui_helpers/elements/dialog_cover.rb', line 4 def base @base end |
#height ⇒ Object
Returns the value of attribute height.
4 5 6 |
# File 'lib/ui_helpers/elements/dialog_cover.rb', line 4 def height @height end |
#left ⇒ Object
Returns the value of attribute left.
4 5 6 |
# File 'lib/ui_helpers/elements/dialog_cover.rb', line 4 def left @left end |
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/ui_helpers/elements/dialog_cover.rb', line 4 def text @text end |
#top ⇒ Object
Returns the value of attribute top.
4 5 6 |
# File 'lib/ui_helpers/elements/dialog_cover.rb', line 4 def top @top end |
#width ⇒ Object
Returns the value of attribute width.
4 5 6 |
# File 'lib/ui_helpers/elements/dialog_cover.rb', line 4 def width @width end |
Instance Method Details
#html(tag_name, &block) ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/ui_helpers/elements/dialog_cover.rb', line 23 def html(tag_name, &block) tag(tag_name) do |buffer| buffer << base buffer << Overlay.new(@template).tag(:div) buffer << Shadow.new(@template, ).tag(:div) buffer << WidgetContent.new(@template, ).tag(:div) do || << DialogContent.new(@template).tag(:div, text) end end end |
#shadow_options ⇒ Object
15 16 17 |
# File 'lib/ui_helpers/elements/dialog_cover.rb', line 15 def {:state => false, :width => width+22, :height => height+22, :top => top, :left => left} end |
#widget_content_options ⇒ Object
19 20 21 |
# File 'lib/ui_helpers/elements/dialog_cover.rb', line 19 def {:state => false, :width => width, :height => height, :top => top, :left => left} end |