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

buttons() click to toggle source
# File lib/end_view/bootstrap/modal.rb, line 50
def buttons
  @buttons ||= [[dismiss_opts, dismiss_value]]
end
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
title_opts() click to toggle source
# File lib/end_view/bootstrap/modal.rb, line 46
def title_opts
  { class: 'modal-title', id: label }
end