Module: HelpersView::RenderModal

Includes:
Common
Included in:
RailsHtml
Defined in:
lib/helpers_view/render_modal.rb

Overview

render modal

Instance Method Summary collapse

Methods included from Common

#bootstrap_version_4?

Instance Method Details

#render_modal_html(id: '', width_class: '', body_class: '', backdrop: '', keyboard: true, class_modal: '') ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/helpers_view/render_modal.rb', line 10

def render_modal_html(id: '', width_class: '', body_class: '', backdrop: '', keyboard: true, class_modal: '')
  tag.div(class: "modal #{class_modal}", id: id, 'data-backdrop': backdrop, 'data-keyboard': keyboard) do
    tag.div(class: "modal-dialog modal-dialog-centered #{width_class}") do
      tag.div(class: 'modal-content') do
        render_modal_body_of_gem(body_class)
      end
    end
  end
end