Skip to content

SiAutoCollapsableListItemDirective documentation

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

Input Properties

NameTypeDefaultDescription
forceHide
boolean false

Hide this item even if enough space is available. When calculating the overall available size, this item is still considered when forceHide=true

Attributes and Methods

NameTypeDefaultDescription
(readonly) canBeVisible
WritableSignal<boolean> false

True if enough space is available for this item.

(readonly) isVisible
Signal<boolean> computed(() => this.canBeVisible() && !this.forceHide())

True if this item is actually visible to the user

size$inherited
Observable<number> this.resizeObserverService .observe(this.elementRef.nativeElement, 0, true, true) .pipe( map(size => size.width), distinctUntilChanged(), takeUntilDestroyed(), shareReplay({ bufferSize: 1, refCount: true }) )

Emits on element width changes.

Inherited from SiAutoCollapsableListMeasurable


Except where otherwise noted, content on this site is licensed under MIT License.