class Maglove::Widget::LegacyRawHtml

Public Instance Methods

defaults() click to toggle source
# File lib/maglove/widget/raw_html.rb, line 21
def defaults
  {
    src: "<p>custom html</p>",
    css: nil
  }
end
identifier() click to toggle source
# File lib/maglove/widget/raw_html.rb, line 17
def identifier
  "raw_html"
end
render(&block) click to toggle source
Calls superclass method Maglove::Widget::V1#render
# File lib/maglove/widget/raw_html.rb, line 28
def render(&block)
  super do
    haml_tag :div, class: "iframe-container", style: style_string(options, :margin, :padding) do
      haml_tag :iframe, src: options[:src], style: options[:css]
    end
  end
end