class EndView::Bootstrap::Modal
Public Class Methods
render(*args, &b)
click to toggle source
# File lib/end_view/bootstrap/modal.rb, line 18 def self.render(*args, &b) new(*args).render(&b) end
Private Instance Methods
close_opts()
click to toggle source
# File lib/end_view/bootstrap/modal.rb, line 40 def close_opts { class: 'close', 'data-dismiss' => 'modal', aria: { hidden: true, label: 'Close' } } end
dialog_opts()
click to toggle source
# File lib/end_view/bootstrap/modal.rb, line 36 def dialog_opts { class: size } end
dismiss_opts()
click to toggle source
# File lib/end_view/bootstrap/modal.rb, line 54 def dismiss_opts { class: 'btn btn-default', 'data-dismiss' => :modal } end
label()
click to toggle source
# File lib/end_view/bootstrap/modal.rb, line 32 def label @label ||= "#{id}Label" end
modal_opts()
click to toggle source
# File lib/end_view/bootstrap/modal.rb, line 24 def modal_opts { id: id, class: 'fade', tabindex: -1, role: 'dialog', aria: { labelledby: label, hidden: true } } end
title_opts()
click to toggle source
# File lib/end_view/bootstrap/modal.rb, line 46 def title_opts { class: 'modal-title', id: label } end