Sha256: 38dbae540dd02956a5bd440e217da19e73f2f51d6a61032fa2d62c4bc4d5cf6b

Contents?: true

Size: 469 Bytes

Versions: 130

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

module NfgUi
  module Bootstrap
    module Utilities
      # Delivers the dismissibility of the component to the HAML partial
      module Dismissible
        def dismissible
          options.fetch(:dismissible, default_dismissible)
        end

        private

        def non_html_attribute_options
          super.push(:dismissible)
        end

        def default_dismissible
          true
        end
      end
    end
  end
end

Version data entries

130 entries across 130 versions & 1 rubygems

Version Path
nfg_ui-6.17.2 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-6.17.1 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-6.17.0 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-6.16.3 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-6.16.2 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-6.16.1 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-6.16.0 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-5.15.7 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-5.15.6 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-5.15.5 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-5.15.4 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-5.15.3 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-0.15.2 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-0.15.1 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-0.15.0 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-0.14.7 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-0.14.6.3 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-0.14.6.2 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-0.14.6.1 lib/nfg_ui/bootstrap/utilities/dismissible.rb
nfg_ui-0.14.6 lib/nfg_ui/bootstrap/utilities/dismissible.rb