Sha256: ea541a064825de18a62a98ad15edb33706097f5c4ef273d5700a35c888896168
Contents?: true
Size: 680 Bytes
Versions: 19
Compression:
Stored size: 680 Bytes
Contents
# frozen_string_literal: true module Playbook module PbDropdown class Dropdown < Playbook::KitBase prop :options, type: Playbook::Props::Array, default: [] prop :label, type: Playbook::Props::String prop :name, type: Playbook::Props::String prop :error, type: Playbook::Props::String prop :required, type: Playbook::Props::Boolean, default: false def data Hash(prop(:data)).merge(pb_dropdown: true) end def classname generate_classname("pb_dropdown") end private def error_class error.present? ? " error" : "" end end end end
Version data entries
19 entries across 19 versions & 1 rubygems