Sha256: 0fce2f86f2bce5f8f00eb354b6c56933837f2cb874ac56d90310fa9a40585d54

Contents?: true

Size: 462 Bytes

Versions: 199

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbStatValue
    class StatValue
      include Playbook::Props
      include ActionView::Helpers::NumberHelper

      partial "pb_stat_value/stat_value"

      prop :unit
      prop :value, type: Playbook::Props::Number

      def formatted_value
        number_with_delimiter(value, delimiter: ",")
      end

      def classname
        generate_classname("pb_stat_value_kit")
      end
    end
  end
end

Version data entries

199 entries across 199 versions & 1 rubygems

Version Path
playbook_ui-7.3.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.3.0.pre.alpha11 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.3.0.pre.alpha10 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.3.0.pre.alpha9 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.3.0.pre.alpha8 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.3.0.pre.alpha7 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.3.0.pre.alpha6 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.3.0.pre.alpha5 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.3.0.pre.alpha4 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.3.0.pre.alpha3 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.3.0.pre.alpha2 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.3.0.pre.alpha1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.2.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.1.2 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.1.0.pre.alpha2 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.1.1.pre.alpha1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.0.1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.1.1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.1.0.pre.alpha1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-7.1.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb