# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
