Sha256: 2041c4aa5edb2253d9b4d169824e6bccbbbe726ee2bc40f8ec5bbf09ff25b051
Contents?: true
Size: 921 Bytes
Versions: 20
Compression:
Stored size: 921 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" 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
20 entries across 20 versions & 1 rubygems