Sha256: 06d3475b9eef1c8b668f5c3baf66aa8d50900d1f52d76f7d82cc4fc019e48e73
Contents?: true
Size: 704 Bytes
Versions: 2
Compression:
Stored size: 704 Bytes
Contents
module Bootstrap module ViewHelpers module ModalHelper def bs_modal(title_or_options = nil, opts = {}, &block) options = title_or_options if block && title_or_options.is_a?(Hash) options ||= opts || {} options[:title] = title_or_options if title_or_options.is_a?(String) Components::Modal.new(self, options || {}, &block).to_html end def bs_card_header(title_or_options = nil, options = {}, &block) options = title_or_options if block && title_or_options.is_a?(Hash) options[:title] = title_or_options if title_or_options.is_a?(String) Components::Card.new(self, options || {}, &block).header end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-view_helpers-0.0.3 | app/helpers/bootstrap/view_helpers/modal_helper.rb |
bootstrap-view_helpers-0.0.2 | app/helpers/bootstrap/view_helpers/modal_helper.rb |