Sha256: 99f34b5b8e656863e752d8a3a0a60c4ea2e1a637482a82ebc96e3b7ac5bbf13d
Contents?: true
Size: 1013 Bytes
Versions: 41
Compression:
Stored size: 1013 Bytes
Contents
# frozen_string_literal: true module Playbook module PbAdvancedTable class TableSubrowHeader < Playbook::KitBase prop :column_definitions, type: Playbook::Props::Array, default: [] prop :depth prop :row prop :enable_toggle_expansion, type: Playbook::Props::Enum, values: %w[all header none], default: "header" prop :subrow_header, type: Playbook::Props::String, default: "" prop :collapsible_trail, type: Playbook::Props::Boolean, default: true def classname generate_classname("pb_table_tr", "bg-white", subrow_depth_classname, separator: " ") end def td_classname generate_classname("id-cell", "chrome-styles", separator: " ") end private def subrow_depth_classname depth.positive? ? "depth-sub-row-#{depth}" : "" end end end end
Version data entries
41 entries across 41 versions & 1 rubygems
Version | Path |
---|---|
playbook_ui-14.10.0.pre.rc.18 | app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb |