Sha256: 647dc1b753108aab60f33e5c0ef9514cad21e32f7d7c2d423f8f692a8610e84b

Contents?: true

Size: 567 Bytes

Versions: 130

Compression:

Stored size: 567 Bytes

Contents

# frozen_string_literal: true

module NfgUi
  module Components
    module Traits
      # Access to pre-designed Card traits
      module Collapse
        TRAITS = %i[collapsible
                    collapsed
                    navbar].freeze

        # private

        # Set component to collapse capable
        def collapsible_trait
          options[:collapsible] = true
        end

        def collapsed_trait
          options[:collapsed] = true
        end

        def navbar_trait
          options[:navbar] = 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/components/traits/collapse.rb
nfg_ui-6.17.1 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-6.17.0 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-6.16.3 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-6.16.2 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-6.16.1 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-6.16.0 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-5.15.7 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-5.15.6 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-5.15.5 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-5.15.4 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-5.15.3 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-0.15.2 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-0.15.1 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-0.15.0 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-0.14.7 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-0.14.6.3 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-0.14.6.2 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-0.14.6.1 lib/nfg_ui/components/traits/collapse.rb
nfg_ui-0.14.6 lib/nfg_ui/components/traits/collapse.rb