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-13.32.0.pre.alpha.PBNTR405dropdownformfixesrails3301 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143297 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143288 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143272 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143271 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.32.0.pre.alpha.PLAY1138iconkitaddcolorprop3268 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143267 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3266 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143264 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143260 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143255 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143251 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3239 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.32.0.pre.alpha.PLAY14103236 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.31.0.pre.alpha.play1416movealiaslogic3232 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.31.0.pre.alpha.PBNTR342navtabbing3231 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.31.0.pre.alpha.PBNTR342navtabbing3230 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.32.0 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.31.0.pre.alpha.powercentrainplaybookpt23212 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
playbook_ui-13.31.0.pre.alpha.PLAY10863204 app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb