Sha256: 480dd21d1470bd61bb93df1bf6537cac3b997ecd8112ff70673ae1a7dd3db193

Contents?: true

Size: 481 Bytes

Versions: 52

Compression:

Stored size: 481 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbLabelValue
    class LabelValue
      include Playbook::Props

      partial "pb_label_value/label_value"

      prop :label, required: true
      prop :value, required: true
      prop :dark, type: Playbook::Props::Boolean, default: false

      def classname
        generate_classname("pb_label_value_kit", dark_class)
      end

    private

      def dark_class
        dark ? "dark" : nil
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
playbook_ui-5.2.0.pre.alpha15 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.2.0.pre.alpha14 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.2.0.pre.alpha13 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.2.0.pre.alpha12 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.2.0.pre.alpha11 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.5.1.pre.alpha4 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.5.1.pre.alpha3 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.5.1.pre.alpha2 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.5.1.pre.alpha1 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.2.0.pre.alpha10 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.5.1 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.5.0 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.5.0.pre.alpha1 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.2.0.pre.alpha9 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.2.0.pre.alpha8 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.2.0.pre.alpha7 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.3.0.pre.alpha1 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.4.0 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.2.0.pre.alpha6 app/pb_kits/playbook/pb_label_value/label_value.rb
playbook_ui-5.2.0.pre.alpha5 app/pb_kits/playbook/pb_label_value/label_value.rb