Sha256: 25570cdfcb97cc096e60c7ecad8df73d454f2758226ffb935bcac70f923834b6
Contents?: true
Size: 725 Bytes
Versions: 199
Compression:
Stored size: 725 Bytes
Contents
# frozen_string_literal: true module Playbook module PbDashboardValue class DashboardValue include Playbook::Props partial "pb_dashboard_value/dashboard_value" 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
199 entries across 199 versions & 1 rubygems