class UiHelpers::DialogOver
Attributes
base[RW]
height[RW]
left[RW]
text[RW]
top[RW]
width[RW]
Public Instance Methods
html(tag_name, &block)
click to toggle source
# 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, shadow_options).tag(:div) buffer << WidgetContent.new(@template, widget_content_options).tag(:div) do |widget_content| widget_content << DialogContent.new(@template).tag(:div, text) end end end
shadow_options()
click to toggle source
# File lib/ui_helpers/elements/dialog_cover.rb, line 15 def shadow_options {:state => false, :width => width+22, :height => height+22, :top => top, :left => left} end
widget_content_options()
click to toggle source
# File lib/ui_helpers/elements/dialog_cover.rb, line 19 def widget_content_options {:state => false, :width => width, :height => height, :top => top, :left => left} end