Sha256: 52b43c0034b84ed79ea9830055258bd0b19b2f3f79e2aa65e7684d43109726f2
Contents?: true
Size: 662 Bytes
Versions: 145
Compression:
Stored size: 662 Bytes
Contents
# frozen_string_literal: true module Playbook module PbDashboardValue class DashboardValue < Playbook::KitBase prop :align, type: Playbook::Props::Enum, values: %w[left center right], default: "left" prop :stat_change, type: Playbook::Props::Hash, default: {} prop :stat_label prop :stat_value, type: Playbook::Props::Hash, default: {} def formatted_stat_value { **stat_value, value: stat_value[:value].to_i } end def classname generate_classname("pb_dashboard_value_kit", align) end end end end
Version data entries
145 entries across 145 versions & 1 rubygems