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.10.1 lib/avo/fields/progress_bar_field.rb
avo-1.10.0 lib/avo/fields/progress_bar_field.rb
avo-1.9.1 lib/avo/fields/progress_bar_field.rb
avo-1.9.0 lib/avo/fields/progress_bar_field.rb
avo-1.8.4 lib/avo/fields/progress_bar_field.rb
avo-1.8.3 lib/avo/fields/progress_bar_field.rb
avo-1.8.2 lib/avo/fields/progress_bar_field.rb
avo-1.8.1 lib/avo/fields/progress_bar_field.rb
avo-1.8.0 lib/avo/fields/progress_bar_field.rb
avo-1.7.3 lib/avo/fields/progress_bar_field.rb
avo-1.7.3.pre.1 lib/avo/fields/progress_bar_field.rb
avo-1.7.2 lib/avo/fields/progress_bar_field.rb
avo-1.7.1 lib/avo/fields/progress_bar_field.rb
avo-1.7.0 lib/avo/fields/progress_bar_field.rb
avo-1.6.4.pre.1 lib/avo/fields/progress_bar_field.rb
avo-1.6.3.pre.3 lib/avo/fields/progress_bar_field.rb
avo-1.6.3.pre.2 lib/avo/fields/progress_bar_field.rb
avo-1.6.3.pre.1 lib/avo/fields/progress_bar_field.rb
avo-1.6.2.pre.1 lib/avo/fields/progress_bar_field.rb
avo-1.6.1 lib/avo/fields/progress_bar_field.rb