Sha256: 76456e244e961f663f88b6dcce53ea7239701132f89b3c5a5b81427dfd720e83
Contents?: true
Size: 906 Bytes
Versions: 49
Compression:
Stored size: 906 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: true 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
49 entries across 49 versions & 1 rubygems