Sha256: c2d18083a6d3c8b5dfe2ebf38e2c81c93c1abcba748b61c29f686dc59d110648

Contents?: true

Size: 387 Bytes

Versions: 11

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

class Avo::Fields::Common::ProgressBarComponent < ViewComponent::Base
  attr_reader :value
  attr_reader :display_value
  attr_reader :value_suffix
  attr_reader :max

  def initialize(value:, display_value: false, value_suffix: nil, max: 100)
    @value = value
    @display_value = display_value
    @value_suffix = value_suffix
    @max = max
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
avo-2.14.3.pre.7.polytranslations1 app/components/avo/fields/common/progress_bar_component.rb
avo-2.14.3.pre.6.nosprockets app/components/avo/fields/common/progress_bar_component.rb
avo-2.14.3.pre.5.nosprockets app/components/avo/fields/common/progress_bar_component.rb
avo-2.14.3.pre.4.tosqlfix app/components/avo/fields/common/progress_bar_component.rb
avo-2.14.3.pre.3.jsbundling app/components/avo/fields/common/progress_bar_component.rb
avo-2.14.3.pre.2.tailwindcss app/components/avo/fields/common/progress_bar_component.rb
avo-2.14.2 app/components/avo/fields/common/progress_bar_component.rb
avo-2.14.2.pre.1 app/components/avo/fields/common/progress_bar_component.rb
avo-2.14.1 app/components/avo/fields/common/progress_bar_component.rb
avo-2.14.1.pre.1 app/components/avo/fields/common/progress_bar_component.rb
avo-2.14.0 app/components/avo/fields/common/progress_bar_component.rb