Sha256: dc50f0a1b00081acc775ce919054cfc13a5983a8b477386a393d2d5575c9dc95
Contents?: true
Size: 521 Bytes
Versions: 1
Compression:
Stored size: 521 Bytes
Contents
require 'erector' class Dvl::Components::Modal < Erector::Widget needs :title, id: nil, html_opts: {} def content div(@html_opts.merge(class: "modal #{@html_opts[:class]}", tabindex: '-1', id: @id)) { div.modal_dialog { div.modal_content { div.modal_header { a.close '×'.html_safe, 'data-dismiss' => 'modal' h3 @title.html_safe } modal_content } } } end def modal_content call_block end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dvl-core-0.1.0 | lib/dvl/components/modal.rb |