Sha256: b1cd5f203201e59efa5eb86df92a81346a1a9bc132ded6293cbcc6b5b64df4e7

Contents?: true

Size: 1.08 KB

Versions: 16

Compression:

Stored size: 1.08 KB

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 :loading, type: Playbook::Props::Boolean,
                     default: false
      prop :responsive, type: Playbook::Props::Enum,
                        values: %w[none scroll],
                        default: "scroll"
      prop :table_props, type: Playbook::Props::HashProp,
                         default: {}

      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

16 entries across 16 versions & 1 rubygems

Version Path
playbook_ui-14.13.0.pre.rc.5 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobug5781 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.13.0.pre.rc.4 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.12.0.pre.alpha.playrailsinputmaskissue5775 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5757 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5754 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobugzindextoken5751 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5738 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.13.0.pre.rc.3 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.12.0.pre.alpha.PLAY1865reactdatepickerreinitializingbug5732 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5728 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.12.0.pre.alpha.play1862buttondisabledlinkbug5716 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.12.0.pre.alpha.play1862buttondisabledlinkbug5714 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.13.0.pre.rc.2 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.13.0.pre.rc.1 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
playbook_ui-14.13.0.pre.rc.0 app/pb_kits/playbook/pb_advanced_table/advanced_table.rb