Sha256: 735996705fa2f688aff07236d586402721a10cf42fbba4e7db48ec0768d87018
Contents?: true
Size: 1016 Bytes
Versions: 4
Compression:
Stored size: 1016 Bytes
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 :responsive, type: Playbook::Props::Enum, values: %w[none scroll], default: "none" 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
4 entries across 4 versions & 1 rubygems