SiMainDetailContainerComponent documentation¶
import { SiMainDetailContainerComponent } from '@siemens/element-ng/main-detail-container'; Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| containerClass ¶ | string | 'px-6 pt-6 px-md-9' | CSS class(es) applied to the outermost container. Per default, Bootstrap classes to handle responsive paddings are applied: |
| detailContainerClass ¶ | string | 'pb-6' | CSS class(es) applied to the detail container. In combination with |
| detailsActive ¶ | boolean | false | Whether the details are currently active or not, mostly relevant in the responsive scenario when the viewport only shows either the main or the detail. |
| detailsBackButtonText ¶ | TranslatableString | $localize`:@@SI_MAIN_DETAIL_CONTAINER.BACK:Back` | Details back button text. Required for a11y. |
| detailsHeading ¶ | TranslatableString | '' | The heading of the detail area. |
| heading ¶ | TranslatableString | '' | The heading of the main-detail layout component, usually a page heading. |
| hideBackButton ¶ | boolean | false | You can hide the back button in the mobile view by setting true. Required in add, edit workflows on mobile sizes. During add or edit, the back button should be hidden. Default value is |
| largeLayoutBreakpoint ¶ | number | BOOTSTRAP_BREAKPOINTS.mdMinimum | A numeric value defining the minimum width in px, which the container needs to be displayed in its large layout. Whenever smaller than this threshold, the small layout will be used. Default is value is BOOTSTRAP_BREAKPOINTS.mdMinimum. |
| mainContainerClass ¶ | string | 'pb-6' | CSS class(es) applied to the main container. In combination with |
| mainContainerWidth ¶ | number | "default" | 'default' | The size of the main container. When resizableParts is enabled, the value is interpreted using mainContainerWidthUnit and updates as the splitter is moved. With With |
| mainContainerWidthUnit ¶ | SplitUnit | 'px' | Unit used for the main split part when resizableParts is enabled. |
| minDetailSize ¶ | number | 300 | Sets the minimal width of the detail container in pixel. |
| minMainSize ¶ | number | 300 | Sets the minimal width of the main container in pixel. |
| resizableParts ¶ | boolean | false | Whether the main and detail parts should be resizable by a splitter or not. This is only supported in the 'large' scenario (when |
| stateId ¶ | string | undefined | An optional stateId to uniquely identify a component instance. Required for persistence of ui state. | |
| truncateHeading ¶ | boolean | false | Whether the heading should be truncated (single line) or not. Default value is |
Output Properties¶
| Name | Type | Description |
|---|---|---|
| detailsActiveChange ¶ | boolean | Whether the details are currently active or not, mostly relevant in the responsive scenario when the viewport only shows either the main or the detail. |
| hasLargeSizeChange ¶ | boolean | Emits whether the components size is large enough to display main and details views next to each other or not. |
| mainContainerWidthChange ¶ | number | "default" | The size of the main container. When resizableParts is enabled, the value is interpreted using mainContainerWidthUnit and updates as the splitter is moved. With With |
Attributes and Methods¶
| Name | Type | Description |
|---|---|---|
| hasLargeSize ¶ | boolean | Whether the main-detail layout component has a large size or not, |
Types Documentation¶
import type { SplitUnit } from '@siemens/element-ng/split';
Represents a translatable string. This can either be a translation key, e.g. import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';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.
Except where otherwise noted, content on this site is licensed under MIT License.