Class: Dvl::Components::Modal
- Inherits:
-
Erector::Widget
- Object
- Erector::Widget
- Dvl::Components::Modal
- Defined in:
- lib/dvl/components/modal.rb
Instance Method Summary collapse
Instance Method Details
#content ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/dvl/components/modal.rb', line 6 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 |
#modal_content ⇒ Object
21 22 23 |
# File 'lib/dvl/components/modal.rb', line 21 def modal_content call_block end |