Sha256: 884492cf1c3e564091b2c0ad7e925c7ca1ee810c0a3fae8399cb7266cbf73a1f
Contents?: true
Size: 300 Bytes
Versions: 2
Compression:
Stored size: 300 Bytes
Contents
module ExpressAdmin class LayoutComponent < ExpressTemplates::Components::Configurable has_option :style, 'Add inline styles to the element' def style_attributes attribs = config[:style] || {} attribs.map do |k, v| "#{k}: #{v}" end.join('; ') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
express_admin-1.4.1 | app/components/express_admin/layout_component.rb |
express_admin-1.4.0 | app/components/express_admin/layout_component.rb |