Sha256: 15e51dce27c1193e5db60583a744b843ca12222563964a998d1bee1c8b180ee9
Contents?: true
Size: 803 Bytes
Versions: 253
Compression:
Stored size: 803 Bytes
Contents
# frozen_string_literal: true module Playbook module PbSelectableList class SelectableListItem < Playbook::KitBase prop :tabindex prop :checked, type: Playbook::Props::Boolean, default: false prop :name, type: Playbook::Props::String prop :text, type: Playbook::Props::String prop :value, type: Playbook::Props::String prop :variant, type: Playbook::Props::Enum, values: %w[radio checkbox], default: "radio" prop :input_options, type: Playbook::Props::Hash, default: {} def classname generate_classname("pb_item_kit") + checked_class end private def checked_class checked ? " checked_item" : "" end end end end
Version data entries
253 entries across 253 versions & 1 rubygems