Class: Dvl::Components::Modal

Inherits:
Erector::Widget
  • Object
show all
Defined in:
lib/dvl/components/modal.rb

Instance Method Summary collapse

Instance Method Details

#contentObject



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


21
22
23
# File 'lib/dvl/components/modal.rb', line 21

def modal_content
  call_block
end