Sha256: 0a72a7ca884b459705549ffd6457ed6caa291d234f51392c9f1a621b3df32946

Contents?: true

Size: 378 Bytes

Versions: 21

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbStatValue
    class StatValue < Playbook::KitBase
      prop :unit
      prop :value, type: Playbook::Props::Numeric

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

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
playbook_ui-11.1.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-11.0.1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-11.0.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-11.0.0.pre.alpha.2 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-11.0.0.pre.alpha.1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.26.1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.27.0.pre.lazysizes1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.27.0.pre.datepicker1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.26.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.26.0.pre.alpha5 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.26.0.pre.rc1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.26.0.pre.alpha.sticky1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.26.0.pre.alpha.display1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.26.0.pre.alpha3 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.25.1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.26.0.pre.alpha1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.25.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.25.0.pre.alpha3 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.25.0.pre.treeshaking1 app/pb_kits/playbook/pb_stat_value/stat_value.rb
playbook_ui-10.24.0 app/pb_kits/playbook/pb_stat_value/stat_value.rb