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.6.0 lib/avo/fields/progress_bar_field.rb
avo-1.5.5 lib/avo/fields/progress_bar_field.rb
avo-1.5.4 lib/avo/fields/progress_bar_field.rb
avo-1.5.3 lib/avo/fields/progress_bar_field.rb
avo-1.5.2 lib/avo/fields/progress_bar_field.rb
avo-1.5.1 lib/avo/fields/progress_bar_field.rb
avo-1.5.0 lib/avo/fields/progress_bar_field.rb
avo-1.4.5.pre.1 lib/avo/fields/progress_bar_field.rb
avo-1.4.4.pre.1 lib/avo/fields/progress_bar_field.rb
avo-1.4.4 lib/avo/fields/progress_bar_field.rb
avo-1.4.3 lib/avo/fields/progress_bar_field.rb
avo-1.4.2 lib/avo/fields/progress_bar_field.rb
avo-1.4.1 lib/avo/fields/progress_bar_field.rb
avo-1.4.0 lib/avo/fields/progress_bar_field.rb