Sha256: ca635b5d450f9c004693978e968fe22720068940d8fc0d3fd26534f92f25ec47
Contents?: true
Size: 515 Bytes
Versions: 104
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: true module Playbook module PbLegend class Legend include Playbook::Props partial "pb_legend/legend" prop :color, type: Playbook::Props::Enum, values: (1..7).map { |n| "data_#{n}" }, default: "data_1" prop :prefix_text prop :text, required: true def body_color dark ? "lighter" : "light" end def classname generate_classname("pb_legend_kit", color) end end end end
Version data entries
104 entries across 104 versions & 1 rubygems