# SiAutoCollapsableListDirective documentation

**Kind:** directive

**Selector:** `[siAutoCollapsableList]`

**Exported as:** `siAutoCollapsableList`

```
import { SiAutoCollapsableListDirective } from '@siemens/element-ng/auto-collapsable-list';
```

```
directive SiAutoCollapsableListDirective implements AfterViewInit, OnChanges, OnDestroy
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [gap](<https://github.com/siemens/element/blob/main/projects/element-ng/auto-collapsable-list/si-auto-collapsable-list.directive.ts#L60-L60>) | `number \| undefined` |  | The (flex) gap in pixels, will automatically be set if a pixel value is used in CSS. |
| [siAutoCollapsableList](<https://github.com/siemens/element/blob/main/projects/element-ng/auto-collapsable-list/si-auto-collapsable-list.directive.ts#L55-L55>) | `boolean` | `true` | Enables the auto-collapsing behavior. When `true`, items that overflow the container are hidden and an overflow indicator item is shown instead. |
| [siAutoCollapsableListContainerElement](<https://github.com/siemens/element/blob/main/projects/element-ng/auto-collapsable-list/si-auto-collapsable-list.directive.ts#L67-L69>) | `HTMLElement \| null \| undefined` | `undefined` | The element which size is available for the content of the siAutoCollapsableList. |

#### Attributes and Methods

##### items

[Source for items](<https://github.com/siemens/element/blob/main/projects/element-ng/auto-collapsable-list/si-auto-collapsable-list.directive.ts#L41-L41>)

**Modifiers:** readonly

**Type:** `Signal<readonly SiAutoCollapsableListItemDirective[]>`

**Default:** `contentChildren(SiAutoCollapsableListItemDirective)`

The items which are displayed in the siAutoCollapsableList.
