> For the complete documentation index, see [llms.txt](https://learn.squirrel365.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.squirrel365.io/squirrel-addon-documentation/building-an-addon/property-panel/property-panel-elements/sub-accordion.md).

# Sub Accordion

{% tabs %}
{% tab title="Image" %}
![](/files/EmwAza0Gwou09yoKTp7X)
{% endtab %}

{% tab title="Property JSON" %}

```json
{
    "type": "SubAccordion",
    "properties": {
        "name": "tooltips",
        "collapsed": true,
        "checkBox": false,
        "bindingPropertyName": "tooltipEnabled"
    },
    "children": []
}
```

{% endtab %}

{% tab title="State definition" %}
If you set the check box property to true, then you will need ensure a binding property name is specified and matches a property in default state

```json
{
    "tooltipEnabled": false
}
```

{% endtab %}
{% endtabs %}

Can contain other elements as children.

## **Configurable properties**

<details>

<summary>name</summary>

**string** - The text to display as the title of the sub accordion in property panel.

</details>

<details>

<summary>collapsed</summary>

**bool** - Whether the sub accordion should be collapsed by default

</details>

<details>

<summary>checkBox</summary>

**bool** - Whether to show a check box to the right of the sub accordion.  An example of this check box could be to toggle on or off collection or properties.  E.g. on a chart the tooltips sub accordion has a check box,  if unchecked tooltips are not applied.&#x20;

</details>

<details>

<summary>bindingPropertyName</summary>

**string** - the property name in default state with which to connect the checkbox to. &#x20;

*Note: This is mandatory if checkBox is set to true.*

</details>

<details>

<summary>children</summary>

**array** - An array of other elements to appear inside the sub accordion drawer

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://learn.squirrel365.io/squirrel-addon-documentation/building-an-addon/property-panel/property-panel-elements/sub-accordion.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
