Sha256: c9e9385aa767af84a3cb7149213235ae737052c6a18e9f854c8bd3571176bfdd
Contents?: true
Size: 500 Bytes
Versions: 19
Compression:
Stored size: 500 Bytes
Contents
# frozen_string_literal: true class Avo::Fields::Common::ProgressBarComponent < Avo::BaseComponent attr_reader :value attr_reader :display_value attr_reader :value_suffix attr_reader :max attr_reader :view def initialize(value:, display_value: false, value_suffix: nil, max: 100, view: "index") @value = value @display_value = display_value @value_suffix = value_suffix @max = max @view = Avo::ViewInquirer.new(view) end delegate :show?, :index?, to: :view end
Version data entries
19 entries across 19 versions & 1 rubygems