Sha256: 0f3ff9ac510a69a43fc0d6fa7d123f3cbaa5b3d212a05cddbd97f36eda89fdaa

Contents?: true

Size: 498 Bytes

Versions: 676

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

676 entries across 676 versions & 1 rubygems

Version Path
playbook_ui-13.14.0.pre.alpha.play1120lintdatepicker1797 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.15.0 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.14.0.pre.alpha.PLAY1109bugdisplaypropblocksfontcolor1784 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.14.0.pre.alpha.play1106filter1751 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.14.0.pre.alpha.play1106filter1748 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.14.0 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.13.0.pre.alpha.PLAY1097linterenhancedelement1728 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.13.0.pre.alpha.play10821727 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.13.0.pre.alpha.play10821726 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.13.0.pre.alpha.play10221678 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.13.0.pre.alpha.PLAY1090csstokens1675 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.13.0.pre.alpha.play900startratingasinput1657 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.13.0 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.PLAY880cardkithighlightzindex1655 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.PLAY1081exportingtypes1627 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.PLAY1081exportingtypes1626 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1624 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1623 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.play900startratingasinput1612 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1611 app/pb_kits/playbook/pb_collapsible/collapsible_content.rb