class Maglove::Widget::LegacyProperty
Public Instance Methods
defaults()
click to toggle source
# File lib/maglove/widget/property.rb, line 14 def defaults { label: "Label", value: "Value" } end
identifier()
click to toggle source
# File lib/maglove/widget/property.rb, line 10 def identifier "property" end
render(&block)
click to toggle source
Calls superclass method
Maglove::Widget::V1#render
# File lib/maglove/widget/property.rb, line 21 def render(&block) super do haml_tag :div, property_options do haml_tag :span, class: "property-label" do haml_concat(options[:label]) end haml_tag :span, class: "property-value" do haml_concat(options[:value]) end haml_tag :span, class: "clearfix" end end end
Private Instance Methods
property_options()
click to toggle source
# File lib/maglove/widget/property.rb, line 37 def property_options { class: "property-container", style: style_string(options, :margin_bottom) } end