Sha256: 0f3ff9ac510a69a43fc0d6fa7d123f3cbaa5b3d212a05cddbd97f36eda89fdaa

Contents?: true

Size: 498 Bytes

Versions: 536

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbCollapsible
    class CollapsibleContent < Playbook::KitBase
      prop :collapsed, type: Playbook::Props::Boolean,
                       default: true
      def data
        Hash(values[:data]).merge(
          collapsible_content: true
        )
      end

      def classname
        generate_classname("pb_collapsible_content_kit", "toggle-content", collapsed ? nil : "is-visible", padding, separator: " ")
      end
    end
  end
end

Version data entries

536 entries across 536 versions & 1 rubygems

Version Path
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1609 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1608 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.play10281596 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.play1051testhighcharts1581 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.play1051testhighcharts1580 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.play1051testhighcharts1579 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.PLAY1093typeaheadkitdocbug1577 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.play1051testhighcharts1574 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.play1051highchartstest1567 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.play1051highchartstest1558 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.play1051highchartstest1556 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.PLAY1051removinghighchartsdependency1551 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.play900startratingasinput1550 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.play900startratingasinput1543 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.11.1.pre.alpha.play900startratingasinput1530 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb