Sha256: 1c982bec183f892cd71f764533c9db87042ca00e231af06529c6d88ba09ce6c2

Contents?: true

Size: 459 Bytes

Versions: 434

Compression:

Stored size: 459 Bytes

Contents

module Avo
  module Fields
    class ProgressBarField < BaseField
      attr_reader :max
      attr_reader :step
      attr_reader :display_value
      attr_reader :value_suffix

      def initialize(name, **args, &block)
        super(name, **args, &block)

        @max = args[:max] || 100
        @step = args[:step] || 1
        @display_value = args[:display_value] || false
        @value_suffix = args[:value_suffix] || nil
      end
    end
  end
end

Version data entries

434 entries across 434 versions & 1 rubygems

Version Path
avo-1.22.3 lib/avo/fields/progress_bar_field.rb
avo-1.22.2 lib/avo/fields/progress_bar_field.rb
avo-1.22.1 lib/avo/fields/progress_bar_field.rb
avo-1.22.1.pre.2 lib/avo/fields/progress_bar_field.rb
avo-1.22.1.pre.1 lib/avo/fields/progress_bar_field.rb
avo-1.22.0 lib/avo/fields/progress_bar_field.rb
avo-1.22.0.pre.1 lib/avo/fields/progress_bar_field.rb
avo-1.21.1.pre.1 lib/avo/fields/progress_bar_field.rb
avo-1.21.0 lib/avo/fields/progress_bar_field.rb
avo-1.20.2.pre.2 lib/avo/fields/progress_bar_field.rb
avo-1.20.2.pre.1 lib/avo/fields/progress_bar_field.rb
avo-1.21.0.pre.1 lib/avo/fields/progress_bar_field.rb
avo-1.20.1 lib/avo/fields/progress_bar_field.rb
avo-1.19.1.pre.11 lib/avo/fields/progress_bar_field.rb
avo-1.19.1.pre.10 lib/avo/fields/progress_bar_field.rb
avo-1.19.1.pre.9 lib/avo/fields/progress_bar_field.rb
avo-1.19.1.pre.8 lib/avo/fields/progress_bar_field.rb
avo-1.19.1.pre.7 lib/avo/fields/progress_bar_field.rb
avo-1.19.1.pre.6 lib/avo/fields/progress_bar_field.rb
avo-1.19.1.pre.5 lib/avo/fields/progress_bar_field.rb