CollapsibleΒΆ

/libs/granite/ui/components/foundation/layouts/collapsible

The collapsible layout.

It has the following content structure at the layout resource:

granite:LayoutsCollapsible
variantstring
  1. block

The variant of the collapsible.

itemCounterstring

The selector to the parent element of the items. The count of the items is displayed as the badge in the header. If the value is empty string, then the direct children are used. IF the property is not specified at all, the badge is not shown.

It has the following content structure at the main resource:

granite:LayoutsCollapsibleMain
jcr:titlestring
mandatory
i18n

The collapsible title.

subtitlestring
i18n

The subtitle.

The body of the collapsible is specified using ItemDataSource.

Example:

+ mycollapsible
  - sling:resourceType = "granite/ui/components/foundation/container"
  - jcr:title = "My Collapsible"
  + layout
    - sling:resourceType = "granite/ui/components/foundation/layouts/collapsible"
  + items
    + item1
    + item2