Sha256: 97d2eacceff2371f1c90b85ec87ad226682a9946b505427fa8f6d0058c1c07e7

Contents?: true

Size: 907 Bytes

Versions: 8

Compression:

Stored size: 907 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbTable
    class TableRow < Playbook::KitBase
      prop :side_highlight_color, type: Playbook::Props::String,
                                  default: "none"
      prop :tag, type: Playbook::Props::Enum,
                 values: %w[table div],
                 default: "table"
      prop :collapsible, type: Playbook::Props::Boolean,
                         default: false
      prop :collapsible_content
      prop :collapsible_side_highlight, type: Playbook::Props::Boolean,
                                        default: false

      def classname
        generate_classname("pb_table_row_kit", side_highlight_class) + tag_class
      end

      def side_highlight_class
        side_highlight_color.present? ? "side_highlight_#{side_highlight_color}" : nil
      end

      def tag_class
        " pb_table_tr"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5673 app/pb_kits/playbook/pb_table/table_row.rb
playbook_ui-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobug5655 app/pb_kits/playbook/pb_table/table_row.rb
playbook_ui-14.12.0.pre.alpha.PBNTR720railscarddraggable5649 app/pb_kits/playbook/pb_table/table_row.rb
playbook_ui-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobug5646 app/pb_kits/playbook/pb_table/table_row.rb
playbook_ui-14.11.1.pre.alpha.PBNTR440enableglobalpropspbformwith5624 app/pb_kits/playbook/pb_table/table_row.rb
playbook_ui-14.12.0 app/pb_kits/playbook/pb_table/table_row.rb
playbook_ui-14.12.0.pre.rc.12 app/pb_kits/playbook/pb_table/table_row.rb
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_table/table_row.rb