Module: Shoehorn::Helpers::ModalHelpers
- Defined in:
- lib/shoehorn/helpers/modal_helpers.rb
Instance Method Summary collapse
-
#bootstrap_modal(options = {}) {|elements| ... } ⇒ Object
Render a modal popup.
Instance Method Details
#bootstrap_modal(options = {}) {|elements| ... } ⇒ Object
Render a modal popup
Returns HTML String for the modal popup
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/shoehorn/helpers/modal_helpers.rb', line 30 def bootstrap_modal( = {}) elements = Shoehorn::HelperCollectionSet.new(self, [:body, :footer]) yield elements Shoehorn::Components::Modal.new( elements.collections[:body], elements.collections[:footer], ).to_s end |