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.11.0.pre.rc.5 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5193 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.11.0.pre.rc.4 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.11.0.pre.rc.3 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.10.0.pre.alpha.PBNTR662stickyrightcolumnreact5160 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.11.0.pre.rc.2 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.11.0.pre.rc.1 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.10.0.pre.alpha.PBNTR775formmatingmaskdefaultvalue5137 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.11.0.pre.rc.0 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.9.0.pre.alpha.PBNTR767advancedtablemultiheadercolumns5136 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.9.0.pre.alpha.PBNTR775formmatingmaskdefaultvalue5121 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.9.0.pre.alpha.PBNTR775formmatingmaskdefaultvalue5120 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.10.0 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.10.0.pre.rc.24 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.10.0.pre.rc.23 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.10.0.pre.rc.22 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.10.0.pre.rc.21 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment5060 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.10.0.pre.rc.20 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.10.0.pre.rc.19 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb