Skip to content

SiSplitPartComponent documentation

import { SiSplitPartComponent } from '@siemens/element-ng/split';

Input Properties

Name Type Default Description
actions
Action[] []

Action buttons displayed in the split part header.

collapseIconClass
string | undefined

Sets the icon class that is used in the buttons of split parts to collapse and uncollapse the parts.

collapseLabel
TranslatableString $localize`:@@SI_SPLIT.COLLAPSE_LABEL:Collapse`

Aria label for collapse button. Needed for a11y

collapseOthers
boolean false

This toggles the behavior when collapsing this split part. If enabled, all split parts between this one and the end of the split in the respective direction will be collapsed if this part is collapsed. If disabled, only this split part will be collapsed.

collapseToMinSize
boolean false

Collapse only to the given min size.

collapsible
CollapseTo | undefined undefined

Defines whether and in which direction the split part can collapse. When unset, the collapse button is hidden.

expanded
boolean true

Sets the initial expanded or collapsed state of the split part.

headerTemplate
TemplateRef<{ $implicit: SiSplitPartComponent; }> | undefined

Custom template for the split part header. The template receives the component instance as implicit context.

heading
TranslatableString | undefined

Sets the title of the split part header.

minSize
number 0

Minimum size in px.

removeContentOnCollapse
boolean false

When a split part is collapsed, the content gets hidden but it will still remain within the DOM. If you want to remove and destroy the component in collapsed mode and recreate it on un-collapse, set this property to true.

showHeader
boolean true

Defines if the header of the split part is visible. Default is true.

size required
number

Expanded size.

stateId
string | undefined

An optional stateId to uniquely identify a component instance. Required for persistence of ui state.

unit required
SplitUnit

Unit for the configured size.

Output Properties

Name Type Description
collapseChanged
boolean

Emits when the part is collapsed or expanded.

stateChange
PartState

Emits the part's expanded state and size after it is toggled.

Attributes and Methods

Name Type Description
(readonly)collapsed
boolean

Get collapsed state.

Returns: True if the split part is collapsed, false is expanded.

toggleCollapse()
() => void

Toggles the collapsed or expanded state.

Types Documentation

import type { Action } from '@siemens/element-ng/split';
Properties

CollapseTo

'to-start' | 'to-end'
type alias
import type { CollapseTo } from '@siemens/element-ng/split';

SplitUnit

'px' | 'fr'
type alias
import type { SplitUnit } from '@siemens/element-ng/split';

import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';

Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit. Equivalent to a normal string in usage and functionality.

import type { PartState } from '@siemens/element-ng/split';
Properties


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