Sha256: 1dd48bcb209bdf4a201de0450455ab39915d10524f8fcb724f7ba5cb7e92a2b4

Contents?: true

Size: 905 Bytes

Versions: 442

Compression:

Stored size: 905 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: ""

      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

442 entries across 442 versions & 1 rubygems

Version Path
playbook_ui-14.8.0.pre.rc.4 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.8.0.pre.rc.3 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.7.0.pre.alpha.PBNTR637quickpickdefaultdate4492 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.8.0.pre.rc.2 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.7.0.pre.alpha.spacingquickchange4482 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.7.0.pre.alpha.PBNTR637quickpickdefaultdate4478 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.7.0.pre.alpha.PBNTR667railstypeaheadformintegration4454 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.8.0.pre.rc.1 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.7.0.pre.alpha.dependabotnpmandyarnintltelinput24704448 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.8.0.pre.rc.0 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.7.0 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.6.2.pre.alpha.PLAY1613darkdatetimecolors4432 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.7.0.pre.rc.19 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.7.0.pre.rc.18 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.6.2.pre.alpha.PBNTR667railstypeaheadformintegration4424 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.7.0.pre.rc.17 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.7.0.pre.rc.16 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.7.0.pre.rc.15 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.7.0.pre.rc.14 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-14.7.0.pre.rc.13 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb