Module: NfgUi::Components::Traits::ProgressBar

Included in:
Elements::ProgressBar, Patterns::Progress
Defined in:
lib/nfg_ui/components/traits/progress_bar.rb

Overview

Shared Size traits

Constant Summary collapse

TRAITS =
%i[striped
animated
label].freeze

Instance Method Summary collapse

Instance Method Details

#animated_traitObject



14
15
16
# File 'lib/nfg_ui/components/traits/progress_bar.rb', line 14

def animated_trait
  options[:animated] = true
end

#label_traitObject



18
19
20
# File 'lib/nfg_ui/components/traits/progress_bar.rb', line 18

def label_trait
  options[:label] = true
end

#striped_traitObject



10
11
12
# File 'lib/nfg_ui/components/traits/progress_bar.rb', line 10

def striped_trait
  options[:striped] = true
end