Sha256: b1cd5f203201e59efa5eb86df92a81346a1a9bc132ded6293cbcc6b5b64df4e7
Contents?: true
Size: 1.08 KB
Versions: 16
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true module Playbook module PbAdvancedTable class AdvancedTable < Playbook::KitBase prop :table_data, type: Playbook::Props::Array, default: [] prop :column_definitions, type: Playbook::Props::Array, default: [] prop :enable_toggle_expansion, type: Playbook::Props::Enum, values: %w[all header none], default: "header" prop :loading, type: Playbook::Props::Boolean, default: false prop :responsive, type: Playbook::Props::Enum, values: %w[none scroll], default: "scroll" prop :table_props, type: Playbook::Props::HashProp, default: {} def classname generate_classname("pb_advanced_table", responsive_classname, separator: " ") end def responsive_classname responsive == "scroll" ? "advanced-table-responsive-scroll" : "advanced-table-responsive-none" end end end end
Version data entries
16 entries across 16 versions & 1 rubygems