# Content layouts

**Content layouts** refer to standardized templates for arranging visual elements and content on a page.

## Usage

Content layouts should be used as starting points and adapted as needed to meet unique requirements. The layouts resides in the `content` area of the [page anatomy](<https://element.siemens.io/fundamentals/layouts/anatomy/>).

![Layout decision tree](<../images/layout-desicion-tree.png>)

### Content area behavior

In all the mentioned layout types, it's important to consider how the content area is managed:

- **Full scroll**: The content takes the needed vertical space and extends as users scroll down.
- **Fixed height:** The application height is fixed to the height as the browser window. The content area resizes vertically and fills the height. Any content overflow is handled with inner scroll bars.

#### Scaling considerations

- When displaying structured data (e.g., tables, lists, or trees), ensure that the container maintains a consistent height, even if only a few entries are present.
- Ensure visual balance between related content containers (e.g., list-details). Avoid situations where one container stretches while another remains mostly empty, creating asymmetry in the layout.

![Layout scaling considerations](<../images/layout-scaling.png>)

### Flexibility

Layouts can incorporate split functionality to allow sections to be rearranged, draggable, or expandable based on user needs and specific requirements. This flexibility can be applied across the different layout structures, allowing for adaptive content management.

### Best practices

- Understand user needs. Choose the right layout based on the content.
- Adapt layouts to match content requirements.
- Preserve structure. Maintain hierarchy as content adjusts.
- Combine layouts to meet complex needs.

## Design

In all layout types, the positions of the following components are fixed:

- [Application header](<https://element.siemens.io/components/layout-navigation/application-header/>)
- Vertical navigation
- Side panel

The following are common layout configurations, adapt them based on the use case.

### Full view layout

Use it for viewing and managing expansive data sets or graphical content that benefits from more horizontal space. The layout maximizes the available space by using the full width of the 12-column grid system within the content area.

![Full view layout](<../images/layout-full-view.png>)

In responsive design, consider utilizing relative units like percentages or viewport width to ensure elements adapt seamlessly to varying screen sizes, taking advantage of available horizontal space.

![Full view layout responsive](<../images/layout-full-view-responsive.png>)

### 1:2 layout

Divides the content or functionality into two balanced sections. A common usage is to pair a map alongside a table or list.

![1:2 layout](<../images/layout-1-2.png>)

On smaller screens, consider offering different view modes or vertically stacking the sections.

![1:2 layout responsive](<../images/layout-1-2-responsive.png>)

### Tile layout

Displays an array of cards, each echoing distinct pieces of information or actions. Use it to present users with an overview, facilitating quick scanning. Users can navigate by selecting cards, which may lead to more detailed content or actions.

![Tile layout](<../images/layout-tile.png>)

On smaller screens, use vertical stacking and consider a dynamic sizing approach based on the 12-column grid system.

![Tile layout responsive](<../images/layout-tile-responsive.png>)

### List-details

The specifics of this layout are described within the list-details chapter.

## Code

This section describes and shows common application page layouts. We show the application of the two variants `Full scroll` and `Fixed height`.

### Full scroll

The content area takes all the height it needs, but not more. The content scrolls below the horizontal navigation. This variant is the default and no extra CSS classes need to be added.

### Fixed height

The content area takes the full available screen height but not more. Inner components like tables may grow to maximum height and content overflows are handled with inner scroll bars.

This behavior can be implemented with [flex](<https://developer.mozilla.org/en-US/docs/Web/CSS/flex>). The outer application element must set its height to `100%` of the window height by e.g. the [sizing](<https://element.siemens.io/fundamentals/styles/sizing/>) utility `h-100` and set its content to flex column with grow and shrink.

```
flex: 1 1 0;
display: flex;
flex-direction: column;
```

It is important that all HTML elements, from the outer to the inner element, which shall grow and shrink apply this layout. This includes also the Angular host element of your components.

```
:host {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
}
```

> Any HTML element in the chain of the growing component with different display settings breaks the behavior. Note, do also not use `height: 100%;` or `h-100` as it breaks the resizing on Safari and iOS.

Element defines the mixin `si-layout-fixed-height` and the class `si-layout-fixed-height` to style elements as described. You also have to use it at the root element that is also set to `100%` height. The components that use inner elements check for this parent class to adjust the inner component display. For example, the inner `main` element that comes with the vertical navigation adjusts its display accordingly.

### Full View Layout Examples

#### Example

##### Fixed Height

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { ChangeDetectorRef, Component, inject, OnInit } from '@angular/core';
import { RouterLink } from '@angular/router';
import {
  SiAccountDetailsComponent,
  SiApplicationHeaderComponent,
  SiHeaderAccountItemComponent,
  SiHeaderActionsDirective,
  SiHeaderBrandDirective,
  SiHeaderLogoDirective
} from '@siemens/element-ng/application-header';
import {
  SI_DATATABLE_CONFIG,
  SiDatatableInteractionDirective
} from '@siemens/element-ng/datatable';
import {
  SiHeaderDropdownComponent,
  SiHeaderDropdownTriggerDirective
} from '@siemens/element-ng/header-dropdown';
import { NavbarVerticalItem } from '@siemens/element-ng/navbar-vertical';
import { SiPaginationComponent } from '@siemens/element-ng/pagination';
import { ElementDimensions, SiResizeObserverDirective } from '@siemens/element-ng/resize-observer';
import { SiSearchBarComponent } from '@siemens/element-ng/search-bar';
import { NgxDatatableModule } from '@siemens/ngx-datatable';

import { CorporateEmployee, DataService, Page, PageRequest } from '../datatable/data.service';

@Component({
  selector: 'app-sample',
  imports: [
    NgxDatatableModule,
    SiDatatableInteractionDirective,
    SiPaginationComponent,
    SiResizeObserverDirective,
    SiSearchBarComponent,
    RouterLink,
    SiAccountDetailsComponent,
    SiApplicationHeaderComponent,
    SiHeaderAccountItemComponent,
    SiHeaderDropdownComponent,
    SiHeaderDropdownTriggerDirective,
    SiHeaderActionsDirective,
    SiHeaderBrandDirective,
    SiHeaderLogoDirective
  ],
  templateUrl: './content-full-layout-fixed-height.html',
  providers: [DataService]
})
export class SampleComponent implements OnInit {
  menuItems: NavbarVerticalItem[] = [
    {
      type: 'group',
      label: 'Home',
      children: [
        { type: 'router-link', label: 'Sub Item', routerLink: 'subItem' },
        { type: 'router-link', label: 'Sub Item 2', routerLink: 'subItem2' },
        { type: 'router-link', label: 'Sub Item 3', routerLink: 'subItem3' }
      ]
    },
    {
      type: 'group',
      label: 'Documentation',
      children: [
        { type: 'router-link', label: 'Sub Item 4', routerLink: 'subItem4' },
        { type: 'router-link', label: 'Sub Item 5', routerLink: 'subItem5' },
        { type: 'router-link', label: 'Sub Item 6', routerLink: 'subItem6' }
      ]
    },
    { type: 'header', label: 'All the rest' },
    { type: 'router-link', label: 'Energy & Operations', routerLink: 'energy' },
    { type: 'router-link', label: 'Test Coverage', routerLink: 'coverage' }
  ];
  tableConfig = SI_DATATABLE_CONFIG;
  pageRequest?: PageRequest;
  page = new Page();
  rows = new Array<CorporateEmployee>();
  isLoading = 0;

  private dataService = inject(DataService);
  private cdRef = inject(ChangeDetectorRef);

  ngOnInit(): void {
    // timeout needed to work in the iFrame in the docs
    setTimeout(() => this.updateTableData(), 500);
  }

  setPage(pageRequest: PageRequest): void {
    // We cache the latest page request and only fire a new request
    // if a different page or page size is requested.
    // For example, the user could click one different pages in the pagination
    // before the http results actually return.
    if (
      this.pageRequest?.offset !== pageRequest.offset ||
      this.pageRequest?.pageSize !== pageRequest.pageSize
    ) {
      this.pageRequest = pageRequest;
      this.isLoading++;
      // We reload the data when the page number or page size changes.
      // During this time, we want to show the ghost loading indicator.
      // To make sure no data is presented. We set the rows in the table
      // to an empty array.
      this.rows = [];
      this.dataService.getResults(pageRequest).subscribe(pagedData => {
        this.isLoading--;
        // Make sure we set the date to the latest page request.
        if (
          this.pageRequest?.offset === pageRequest.offset &&
          this.pageRequest?.pageSize === pageRequest.pageSize
        ) {
          this.page = pagedData.page;
          this.rows = pagedData.data;
        }
        this.cdRef.markForCheck();
      });
    }
  }

  updateTableData(dimensions?: ElementDimensions): void {
    if (!dimensions) {
      return;
    }

    const bodyHeight =
      dimensions.height - SI_DATATABLE_CONFIG.headerHeight - SI_DATATABLE_CONFIG.footerHeight;
    const pageSize = Math.floor(bodyHeight / SI_DATATABLE_CONFIG.rowHeightSmall);
    this.page.size = pageSize;
    this.setPage({
      offset: this.page.pageNumber,
      pageSize: this.page.size
    });
  }
}
```

Template:

```html
<div class="has-navbar-fixed-top si-layout-fixed-height h-100">
  <si-application-header>
    <si-header-brand>
      <a siHeaderLogo routerLink="/" class="d-none d-md-flex"></a>
      <h1 class="application-name">Application name</h1>
    </si-header-brand>

    <si-header-actions>
      <button
        si-header-account-item
        type="button"
        name="Jane Smith"
        [siHeaderDropdownTriggerFor]="account"
      >
      </button>
      <ng-template #account>
        <si-header-dropdown>
          <si-account-details
            name="Jane Smith"
            email="jane.smith@example.org"
            company="ExampleOrg"
          />
        </si-header-dropdown>
      </ng-template>
    </si-header-actions>
  </si-application-header>

  <div class="si-layout-fixed-height si-layout-main-padding">
    <div class="si-layout-header">
      <h2 class="si-layout-title si-layout-top-element"
        >Title describing what page content to expect</h2
      >
      <p class="si-layout-subtitle"
        >Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do</p
      >
    </div>

    <div class="row gy-6 mb-6">
      <si-search-bar placeholder="Search" class="col-12 col-md" [showIcon]="true" />
      <div class="col-auto">
        <select aria-label="number" class="form-select">
          <option value="0">No filter</option>
          <option value="1">Admin</option>
          <option value="2">Controller</option>
          <option value="3">User</option>
        </select>
      </div>
    </div>

    <ngx-datatable
      #table
      class="table-element si-layout-fixed-height mb-4"
      siDatatableInteraction
      selectionType="single"
      columnMode="force"
      [cssClasses]="tableConfig.cssClasses"
      [rows]="rows"
      [columns]="[
        { name: 'Name', sortable: false },
        { name: 'Role', sortable: false },
        { name: 'Company', sortable: false }
      ]"
      [headerHeight]="tableConfig.headerHeight"
      [footerHeight]="tableConfig.footerHeight"
      [rowHeight]="tableConfig.rowHeightSmall"
      [externalPaging]="true"
      [count]="page.totalElements"
      [offset]="page.pageNumber"
      [limit]="page.size"
      [ghostLoadingIndicator]="isLoading > 0"
      (page)="setPage($event)"
      (siResizeObserver)="updateTableData($event)"
    >
      <ngx-datatable-footer>
        <ng-template ngx-datatable-footer-template>
          <si-pagination
            class="ms-auto"
            [currentPage]="page.pageNumber + 1"
            [totalRowCount]="page.totalElements"
            [pageSize]="page.size"
            (currentPageChange)="table.onFooterPage({ page: $event })"
          />
        </ng-template>
      </ngx-datatable-footer>
    </ngx-datatable>
  </div>
</div>
```

##### Full Scroll

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { ChangeDetectorRef, Component, inject, OnInit } from '@angular/core';
import { RouterLink } from '@angular/router';
import {
  SiAccountDetailsComponent,
  SiApplicationHeaderComponent,
  SiHeaderAccountItemComponent,
  SiHeaderActionsDirective,
  SiHeaderBrandDirective,
  SiHeaderLogoDirective
} from '@siemens/element-ng/application-header';
import {
  SI_DATATABLE_CONFIG,
  SiDatatableInteractionDirective
} from '@siemens/element-ng/datatable';
import {
  SiHeaderDropdownComponent,
  SiHeaderDropdownTriggerDirective
} from '@siemens/element-ng/header-dropdown';
import { NavbarVerticalItem } from '@siemens/element-ng/navbar-vertical';
import { SiPaginationComponent } from '@siemens/element-ng/pagination';
import { ElementDimensions, SiResizeObserverDirective } from '@siemens/element-ng/resize-observer';
import { SiSearchBarComponent } from '@siemens/element-ng/search-bar';
import { NgxDatatableModule } from '@siemens/ngx-datatable';

import { CorporateEmployee, DataService, Page, PageRequest } from '../datatable/data.service';

@Component({
  selector: 'app-sample',
  imports: [
    NgxDatatableModule,
    SiDatatableInteractionDirective,
    SiPaginationComponent,
    SiResizeObserverDirective,
    SiSearchBarComponent,
    RouterLink,
    SiAccountDetailsComponent,
    SiApplicationHeaderComponent,
    SiHeaderAccountItemComponent,
    SiHeaderDropdownComponent,
    SiHeaderDropdownTriggerDirective,
    SiHeaderActionsDirective,
    SiHeaderBrandDirective,
    SiHeaderLogoDirective
  ],
  templateUrl: './content-full-layout-full-scroll.html',
  providers: [DataService]
})
export class SampleComponent implements OnInit {
  menuItems: NavbarVerticalItem[] = [
    {
      type: 'group',
      label: 'Home',
      children: [
        { type: 'router-link', label: 'Sub Item', routerLink: 'subItem' },
        { type: 'router-link', label: 'Sub Item 2', routerLink: 'subItem2' },
        { type: 'router-link', label: 'Sub Item 3', routerLink: 'subItem3' }
      ]
    },
    {
      type: 'group',
      label: 'Documentation',
      children: [
        { type: 'router-link', label: 'Sub Item 4', routerLink: 'subItem4' },
        { type: 'router-link', label: 'Sub Item 5', routerLink: 'subItem5' },
        { type: 'router-link', label: 'Sub Item 6', routerLink: 'subItem6' }
      ]
    },
    { type: 'header', label: 'All the rest' },
    { type: 'router-link', label: 'Energy & Operations', routerLink: 'energy' },
    { type: 'router-link', label: 'Test Coverage', routerLink: 'coverage' }
  ];
  tableConfig = SI_DATATABLE_CONFIG;
  pageRequest?: PageRequest;
  page = new Page();
  rows = new Array<CorporateEmployee>();
  isLoading = 0;

  private dataService = inject(DataService);
  private cdRef = inject(ChangeDetectorRef);

  ngOnInit(): void {
    // timeout needed to work in the iFrame in the docs
    setTimeout(() => this.updateTableData(), 500);
  }

  setPage(pageRequest: PageRequest): void {
    // We cache the latest page request and only fire a new request
    // if a different page or page size is requested.
    // For example, the user could click one different pages in the pagination
    // before the http results actually return.
    if (
      this.pageRequest?.offset !== pageRequest.offset ||
      this.pageRequest?.pageSize !== pageRequest.pageSize
    ) {
      this.pageRequest = pageRequest;
      this.isLoading++;
      // We reload the data when the page number or page size changes.
      // During this time, we want to show the ghost loading indicator.
      // To make sure no data is presented. We set the rows in the table
      // to an empty array.
      this.rows = [];
      this.dataService.getResults(pageRequest).subscribe(pagedData => {
        this.isLoading--;
        // Make sure we set the date to the latest page request.
        if (
          this.pageRequest?.offset === pageRequest.offset &&
          this.pageRequest?.pageSize === pageRequest.pageSize
        ) {
          this.page = pagedData.page;
          this.rows = pagedData.data;
        }
        this.cdRef.markForCheck();
      });
    }
  }

  updateTableData(dimensions?: ElementDimensions): void {
    if (!dimensions) {
      return;
    }

    const bodyHeight =
      dimensions.height - SI_DATATABLE_CONFIG.headerHeight - SI_DATATABLE_CONFIG.footerHeight;
    const pageSize = Math.floor(bodyHeight / SI_DATATABLE_CONFIG.rowHeightSmall);
    this.page.size = pageSize;
    this.setPage({
      offset: this.page.pageNumber,
      pageSize: this.page.size
    });
  }
}
```

Template:

```html
<div class="has-navbar-fixed-top">
  <si-application-header>
    <si-header-brand>
      <a siHeaderLogo routerLink="/" class="d-none d-md-flex"></a>
      <h1 class="application-name">Application name</h1>
    </si-header-brand>

    <si-header-actions>
      <button
        si-header-account-item
        type="button"
        name="Jane Smith"
        [siHeaderDropdownTriggerFor]="account"
      >
      </button>
      <ng-template #account>
        <si-header-dropdown>
          <si-account-details
            name="Jane Smith"
            email="jane.smith@example.org"
            company="ExampleOrg"
          />
        </si-header-dropdown>
      </ng-template>
    </si-header-actions>
  </si-application-header>

  <div class="si-layout-main-padding">
    <div class="si-layout-header">
      <h2 class="si-layout-title si-layout-top-element"
        >Title describing what page content to expect</h2
      >
      <p class="si-layout-subtitle"
        >Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do</p
      >
    </div>

    <div class="row gy-6 mb-6">
      <si-search-bar placeholder="Search" class="col-12 col-md" [showIcon]="true" />
      <div class="col-auto">
        <select aria-label="number" class="form-select">
          <option value="0">No filter</option>
          <option value="1">Admin</option>
          <option value="2">Controller</option>
          <option value="3">User</option>
        </select>
      </div>
    </div>

    <ngx-datatable
      #table
      class="table-element mb-4"
      style="height: 600px"
      siDatatableInteraction
      columnMode="force"
      selectionType="single"
      [cssClasses]="tableConfig.cssClasses"
      [rows]="rows"
      [columns]="[
        { name: 'Name', sortable: false },
        { name: 'Role', sortable: false },
        { name: 'Company', sortable: false }
      ]"
      [headerHeight]="tableConfig.headerHeight"
      [footerHeight]="tableConfig.footerHeight"
      [rowHeight]="tableConfig.rowHeightSmall"
      [externalPaging]="true"
      [count]="page.totalElements"
      [offset]="page.pageNumber"
      [limit]="page.size"
      [ghostLoadingIndicator]="isLoading > 0"
      (page)="setPage($event)"
      (siResizeObserver)="updateTableData($event)"
    >
      <ngx-datatable-footer>
        <ng-template ngx-datatable-footer-template>
          <si-pagination
            class="ms-auto"
            forwardButtonText="forward"
            backButtonText="back"
            [currentPage]="page.pageNumber + 1"
            [totalRowCount]="rows.length"
            (currentPageChange)="table.onFooterPage({ page: $event })"
          />
        </ng-template>
      </ngx-datatable-footer>
    </ngx-datatable>
  </div>
</div>
```

### 1:2 Layout Examples

#### Example

##### Fixed Height

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { ChangeDetectorRef, Component, inject } from '@angular/core';
import { RouterLink } from '@angular/router';
import { SiChartCircleComponent } from '@siemens/charts-ng/circle';
import {
  SiAccountDetailsComponent,
  SiApplicationHeaderComponent,
  SiHeaderAccountItemComponent,
  SiHeaderActionsDirective,
  SiHeaderBrandDirective,
  SiHeaderLogoDirective
} from '@siemens/element-ng/application-header';
import {
  SI_DATATABLE_CONFIG,
  SiDatatableInteractionDirective
} from '@siemens/element-ng/datatable';
import {
  SiHeaderDropdownComponent,
  SiHeaderDropdownTriggerDirective
} from '@siemens/element-ng/header-dropdown';
import { NavbarVerticalItem } from '@siemens/element-ng/navbar-vertical';
import { SiResizeObserverDirective } from '@siemens/element-ng/resize-observer';
import { SiSearchBarComponent } from '@siemens/element-ng/search-bar';
import { LOG_EVENT } from '@siemens/live-preview';
import { NgxDatatableModule } from '@siemens/ngx-datatable';

import { CorporateEmployee, DataService, PageRequest } from '../datatable/data.service';

@Component({
  selector: 'app-sample',
  imports: [
    NgxDatatableModule,
    SiChartCircleComponent,
    SiDatatableInteractionDirective,
    SiResizeObserverDirective,
    SiSearchBarComponent,
    RouterLink,
    SiAccountDetailsComponent,
    SiApplicationHeaderComponent,
    SiHeaderAccountItemComponent,
    SiHeaderDropdownTriggerDirective,
    SiHeaderDropdownComponent,
    SiHeaderActionsDirective,
    SiHeaderBrandDirective,
    SiHeaderLogoDirective
  ],
  templateUrl: './content-1-2-layout-fixed-height.html',
  providers: [DataService]
})
export class SampleComponent {
  menuItems: NavbarVerticalItem[] = [
    {
      type: 'group',
      label: 'Home',
      children: [
        { type: 'router-link', label: 'Sub Item', routerLink: 'subItem' },
        { type: 'router-link', label: 'Sub Item 2', routerLink: 'subItem2' },
        { type: 'router-link', label: 'Sub Item 3', routerLink: 'subItem3' }
      ]
    },
    {
      type: 'group',
      label: 'Documentation',
      children: [
        { type: 'router-link', label: 'Sub Item 4', routerLink: 'subItem4' },
        { type: 'router-link', label: 'Sub Item 5', routerLink: 'subItem5' },
        { type: 'router-link', label: 'Sub Item 6', routerLink: 'subItem6' }
      ]
    },
    { type: 'header', label: 'All the rest' },
    { type: 'router-link', label: 'Energy & Operations', routerLink: 'energy' },
    { type: 'router-link', label: 'Test Coverage', routerLink: 'coverage' }
  ];
  logEvent = inject(LOG_EVENT);

  tableConfig = SI_DATATABLE_CONFIG;
  totalElements = 0;
  pageNumber = 0;

  rows: CorporateEmployee[] = [];

  isLoading = 0;

  private dataService = inject(DataService);
  private cdRef = inject(ChangeDetectorRef);

  onSelect(event: CorporateEmployee[]): void {
    this.logEvent(event);
  }

  setPage(pageRequest: PageRequest): void {
    // current page number is determined by last call to setPage
    this.pageNumber = pageRequest.offset;

    // counter of pages loading
    this.isLoading++;

    this.dataService.getResults(pageRequest).subscribe(pagedData => {
      // update total count
      this.totalElements = pagedData.page.totalElements;

      // calc starting index
      const start = pagedData.page.pageNumber * pagedData.page.size;

      // copy existing data
      const rows = this.rows.slice();

      // insert new rows into new position
      if (rows.length <= start) {
        rows.length = start + 1;
      }
      rows.splice(start, pagedData.page.size, ...pagedData.data);

      // set rows to our new rows
      this.rows = rows;

      this.isLoading--;
      this.cdRef.markForCheck();
    });
  }
}
```

Template:

```html
<div class="has-navbar-fixed-top si-layout-fixed-height h-100">
  <si-application-header>
    <si-header-brand>
      <a siHeaderLogo routerLink="/" class="d-none d-md-flex"></a>
      <h1 class="application-name">Application name</h1>
    </si-header-brand>

    <si-header-actions>
      <button
        si-header-account-item
        type="button"
        name="Jane Smith"
        [siHeaderDropdownTriggerFor]="account"
      >
      </button>
      <ng-template #account>
        <si-header-dropdown>
          <si-account-details
            name="Jane Smith"
            email="jane.smith@example.org"
            company="ExampleOrg"
          />
        </si-header-dropdown>
      </ng-template>
    </si-header-actions>
  </si-application-header>

  <div class="si-layout-fixed-height si-layout-main-padding">
    <div class="si-layout-header">
      <h2 class="si-layout-title si-layout-top-element"
        >Title describing what page content to expect</h2
      >
      <p class="si-layout-subtitle"
        >Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do</p
      >
    </div>

    <div class="row gy-6 mb-6">
      <si-search-bar placeholder="Search" class="col-12 col-md" [showIcon]="true" />
      <div class="col-auto">
        <select aria-label="number" class="form-select">
          <option value="0">No filter</option>
          <option value="1">Admin</option>
          <option value="2">Controller</option>
          <option value="3">User</option>
        </select>
      </div>
    </div>

    <div class="row si-layout-fixed-height flex-row">
      <div class="col-sm-12 col-md-6 si-layout-fixed-height mb-6">
        <ngx-datatable
          #table
          class="table-element si-layout-fixed-height"
          style="min-height: 300px"
          siDatatableInteraction
          columnMode="force"
          selectionType="multi"
          [rows]="rows"
          [columns]="[
            { name: 'Name', sortable: false },
            { name: 'Role', sortable: false },
            { name: 'Company', sortable: false }
          ]"
          [reorderable]="true"
          [rowHeight]="tableConfig.rowHeightSmall"
          [footerHeight]="0"
          [ghostLoadingIndicator]="true"
          [scrollbarV]="true"
          [externalPaging]="true"
          [externalSorting]="true"
          [count]="totalElements"
          [offset]="pageNumber"
          [datatableInteractionAutoSelect]="true"
          (page)="setPage($event)"
          (selectedChange)="onSelect($event)"
          (siResizeObserver)="table.recalculate()"
        />
      </div>
      <div class="col-sm-12 col-md-6 si-layout-fixed-height mb-6">
        <si-chart-circle
          #chart
          class="background-1 rounded-2"
          style="min-height: 300px"
          title="Reasons to remember the name"
          [series]="[
            {
              name: 'Level',
              radius: ['0', '60%'],
              data: [
                { value: 10, name: 'Luck' },
                { value: 20, name: 'Skill' },
                { value: 15, name: 'Concentrated power of will' },
                { value: 5, name: 'Pleasure' },
                { value: 50, name: 'Pain' }
              ]
            }
          ]"
          (siResizeObserver)="chart.resize()"
        />
      </div>
    </div>
  </div>
</div>
```

##### Full Scroll

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { ChangeDetectorRef, Component, inject } from '@angular/core';
import { RouterLink } from '@angular/router';
import { SiChartCircleComponent } from '@siemens/charts-ng/circle';
import {
  SiAccountDetailsComponent,
  SiApplicationHeaderComponent,
  SiHeaderAccountItemComponent,
  SiHeaderActionsDirective,
  SiHeaderBrandDirective,
  SiHeaderLogoDirective
} from '@siemens/element-ng/application-header';
import {
  SI_DATATABLE_CONFIG,
  SiDatatableInteractionDirective
} from '@siemens/element-ng/datatable';
import {
  SiHeaderDropdownComponent,
  SiHeaderDropdownTriggerDirective
} from '@siemens/element-ng/header-dropdown';
import { NavbarVerticalItem } from '@siemens/element-ng/navbar-vertical';
import { SiResizeObserverDirective } from '@siemens/element-ng/resize-observer';
import { SiSearchBarComponent } from '@siemens/element-ng/search-bar';
import { LOG_EVENT } from '@siemens/live-preview';
import { NgxDatatableModule } from '@siemens/ngx-datatable';

import { CorporateEmployee, DataService, PageRequest } from '../datatable/data.service';

@Component({
  selector: 'app-sample',
  imports: [
    NgxDatatableModule,
    SiChartCircleComponent,
    SiDatatableInteractionDirective,
    SiResizeObserverDirective,
    SiSearchBarComponent,
    RouterLink,
    SiAccountDetailsComponent,
    SiApplicationHeaderComponent,
    SiHeaderAccountItemComponent,
    SiHeaderDropdownComponent,
    SiHeaderDropdownTriggerDirective,
    SiHeaderActionsDirective,
    SiHeaderBrandDirective,
    SiHeaderLogoDirective
  ],
  templateUrl: './content-1-2-layout-full-scroll.html',
  providers: [DataService]
})
export class SampleComponent {
  menuItems: NavbarVerticalItem[] = [
    {
      type: 'group',
      label: 'Home',
      children: [
        { type: 'router-link', label: 'Sub Item', routerLink: 'subItem' },
        { type: 'router-link', label: 'Sub Item 2', routerLink: 'subItem2' },
        { type: 'router-link', label: 'Sub Item 3', routerLink: 'subItem3' }
      ]
    },
    {
      type: 'group',
      label: 'Documentation',
      children: [
        { type: 'router-link', label: 'Sub Item 4', routerLink: 'subItem4' },
        { type: 'router-link', label: 'Sub Item 5', routerLink: 'subItem5' },
        { type: 'router-link', label: 'Sub Item 6', routerLink: 'subItem6' }
      ]
    },
    { type: 'header', label: 'All the rest' },
    { type: 'router-link', label: 'Energy & Operations', routerLink: 'energy' },
    { type: 'router-link', label: 'Test Coverage', routerLink: 'coverage' }
  ];
  logEvent = inject(LOG_EVENT);

  tableConfig = SI_DATATABLE_CONFIG;
  totalElements = 0;
  pageNumber = 0;

  rows: CorporateEmployee[] = [];

  isLoading = 0;

  private dataService = inject(DataService);
  private cdRef = inject(ChangeDetectorRef);

  onSelect(event: CorporateEmployee[]): void {
    this.logEvent(event);
  }

  setPage(pageRequest: PageRequest): void {
    // current page number is determined by last call to setPage
    this.pageNumber = pageRequest.offset;

    // counter of pages loading
    this.isLoading++;

    this.dataService.getResults(pageRequest).subscribe(pagedData => {
      // update total count
      this.totalElements = pagedData.page.totalElements;

      // calc starting index
      const start = pagedData.page.pageNumber * pagedData.page.size;

      // copy existing data
      const rows = this.rows.slice();

      // insert new rows into new position
      if (rows.length <= start) {
        rows.length = start + 1;
      }
      rows.splice(start, pagedData.page.size, ...pagedData.data);

      // set rows to our new rows
      this.rows = rows;

      this.isLoading--;
      this.cdRef.markForCheck();
    });
  }
}
```

Template:

```html
<div class="has-navbar-fixed-top">
  <si-application-header>
    <si-header-brand>
      <a siHeaderLogo routerLink="/" class="d-none d-md-flex"></a>
      <h1 class="application-name">Application name</h1>
    </si-header-brand>

    <si-header-actions>
      <button
        si-header-account-item
        type="button"
        name="Jane Smith"
        [siHeaderDropdownTriggerFor]="account"
      >
      </button>
      <ng-template #account>
        <si-header-dropdown>
          <si-account-details
            name="Jane Smith"
            email="jane.smith@example.org"
            company="ExampleOrg"
          />
        </si-header-dropdown>
      </ng-template>
    </si-header-actions>
  </si-application-header>

  <div class="si-layout-main-padding">
    <div class="si-layout-header">
      <h2 class="si-layout-title si-layout-top-element"
        >Title describing what page content to expect</h2
      >
      <p class="si-layout-subtitle"
        >Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do</p
      >
    </div>

    <div class="row gy-6 mb-6">
      <si-search-bar placeholder="Search" class="col-12 col-md" [showIcon]="true" />
      <div class="col-auto">
        <select aria-label="number" class="form-select">
          <option value="0">No filter</option>
          <option value="1">Admin</option>
          <option value="2">Controller</option>
          <option value="3">User</option>
        </select>
      </div>
    </div>

    <div class="row">
      <div class="col-sm-12 col-md-6 mb-6">
        <ngx-datatable
          #table
          class="table-element"
          style="height: 600px; min-height: 250px"
          siDatatableInteraction
          columnMode="force"
          selectionType="multi"
          [rows]="rows"
          [columns]="[
            { name: 'Name', sortable: false },
            { name: 'Role', sortable: false },
            { name: 'Company', sortable: false }
          ]"
          [reorderable]="true"
          [rowHeight]="tableConfig.rowHeightSmall"
          [footerHeight]="0"
          [ghostLoadingIndicator]="true"
          [scrollbarV]="true"
          [externalPaging]="true"
          [externalSorting]="true"
          [count]="totalElements"
          [offset]="pageNumber"
          [datatableInteractionAutoSelect]="true"
          (page)="setPage($event)"
          (selectedChange)="onSelect($event)"
          (siResizeObserver)="table.recalculate()"
        />
      </div>
      <div class="col-sm-12 col-md-6 mb-6">
        <si-chart-circle
          #chart
          class="background-1 rounded-2"
          style="height: 600px; min-height: 250px"
          title="Reasons to remember the name"
          [series]="[
            {
              name: 'Level',
              radius: ['0', '60%'],
              data: [
                { value: 10, name: 'Luck' },
                { value: 20, name: 'Skill' },
                { value: 15, name: 'Concentrated power of will' },
                { value: 5, name: 'Pleasure' },
                { value: 50, name: 'Pain' }
              ]
            }
          ]"
          (siResizeObserver)="chart.resize()"
        />
      </div>
    </div>
  </div>
</div>
```

### Tile Layout Examples

A bottom margin of `16px` or `.mb-6` is added to the content element container.

#### Example

##### No Vertical Navbar

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component } from '@angular/core';
import { RouterLink } from '@angular/router';
import {
  SiAccountDetailsComponent,
  SiApplicationHeaderComponent,
  SiHeaderAccountItemComponent,
  SiHeaderActionsDirective,
  SiHeaderBrandDirective,
  SiHeaderLogoDirective
} from '@siemens/element-ng/application-header';
import { SiCardComponent } from '@siemens/element-ng/card';
import {
  SiHeaderDropdownComponent,
  SiHeaderDropdownTriggerDirective
} from '@siemens/element-ng/header-dropdown';
import { NavbarVerticalItem } from '@siemens/element-ng/navbar-vertical';
import { SiSearchBarComponent } from '@siemens/element-ng/search-bar';

@Component({
  selector: 'app-sample',
  imports: [
    SiCardComponent,
    SiSearchBarComponent,
    RouterLink,
    SiAccountDetailsComponent,
    SiApplicationHeaderComponent,
    SiHeaderAccountItemComponent,
    SiHeaderDropdownTriggerDirective,
    SiHeaderDropdownComponent,
    SiHeaderActionsDirective,
    SiHeaderBrandDirective,
    SiHeaderLogoDirective
  ],
  templateUrl: './content-tile-layout-full-scroll.html'
})
export class SampleComponent {
  menuItems: NavbarVerticalItem[] = [
    {
      type: 'group',
      label: 'Home',
      children: [
        { type: 'router-link', label: 'Sub Item', routerLink: 'subItem' },
        { type: 'router-link', label: 'Sub Item 2', routerLink: 'subItem2' },
        { type: 'router-link', label: 'Sub Item 3', routerLink: 'subItem3' }
      ]
    },
    {
      type: 'group',
      label: 'Documentation',
      children: [
        { type: 'router-link', label: 'Sub Item 4', routerLink: 'subItem4' },
        { type: 'router-link', label: 'Sub Item 5', routerLink: 'subItem5' },
        { type: 'router-link', label: 'Sub Item 6', routerLink: 'subItem6' }
      ]
    },
    { type: 'header', label: 'All the rest' },
    { type: 'router-link', label: 'Energy & Operations', routerLink: 'energy' },
    { type: 'router-link', label: 'Test Coverage', routerLink: 'coverage' }
  ];

  counter(i: number): undefined[] {
    return new Array(i);
  }
}
```

Template:

```html
<div class="has-navbar-fixed-top">
  <si-application-header>
    <si-header-brand>
      <a siHeaderLogo routerLink="/" class="d-none d-md-flex"></a>
      <h1 class="application-name">Application name</h1>
    </si-header-brand>

    <si-header-actions>
      <button
        si-header-account-item
        type="button"
        name="Jane Smith"
        [siHeaderDropdownTriggerFor]="account"
      >
      </button>
      <ng-template #account>
        <si-header-dropdown>
          <si-account-details
            name="Jane Smith"
            email="jane.smith@example.org"
            company="ExampleOrg"
          />
        </si-header-dropdown>
      </ng-template>
    </si-header-actions>
  </si-application-header>

  <div class="si-layout-main-padding">
    <div class="si-layout-header">
      <h2 class="si-layout-title si-layout-top-element"
        >Title describing what page content to expect</h2
      >
      <p class="si-layout-subtitle"
        >Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do</p
      >
    </div>

    <div class="row gy-6 mb-6">
      <si-search-bar placeholder="Search" class="col-12 col-md" [showIcon]="true" />
      <div class="col-auto">
        <select aria-label="number" class="form-select">
          <option value="0">No filter</option>
          <option value="1">Admin</option>
          <option value="2">Controller</option>
          <option value="3">User</option>
        </select>
      </div>
    </div>

    <div class="row mt-8 mb-6">
      <div class="col">
        <si-card class="h-100" heading="Card 1">
          <span class="card-body" style="height: 300px" body></span>
        </si-card>
      </div>
    </div>

    <div class="row">
      @for (key of counter(9); track $index) {
        <div class="col-xl-4 col-md-4 col-sm-6 mb-6">
          <si-card class="h-100" [heading]="'Card Heading ' + $index">
            <div class="card-body" style="height: 200px" body>Content {{ $index }}</div>
          </si-card>
        </div>
      }
    </div>
  </div>
</div>
```

##### Vertical Navbar

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component, inject, signal } from '@angular/core';
import { toSignal } from '@angular/core/rxjs-interop';
import { RouterLink } from '@angular/router';
import { SiAccordionComponent, SiCollapsiblePanelComponent } from '@siemens/element-ng/accordion';
import {
  SiAccountDetailsComponent,
  SiApplicationHeaderComponent,
  SiHeaderAccountItemComponent,
  SiHeaderActionsDirective,
  SiHeaderBrandDirective,
  SiHeaderLogoDirective,
  SiLaunchpadFactoryComponent
} from '@siemens/element-ng/application-header';
import { SiCardComponent } from '@siemens/element-ng/card';
import {
  SiHeaderDropdownComponent,
  SiHeaderDropdownTriggerDirective
} from '@siemens/element-ng/header-dropdown';
import { NavbarVerticalItem, SiNavbarVerticalComponent } from '@siemens/element-ng/navbar-vertical';
import {
  SidePanelMode,
  SidePanelSize,
  SiSidePanelComponent,
  SiSidePanelContentComponent
} from '@siemens/element-ng/side-panel';
import { SiStatusBarComponent, StatusBarItem } from '@siemens/element-ng/status-bar';
import { SiSystemBannerComponent } from '@siemens/element-ng/system-banner';
import { LOG_EVENT } from '@siemens/live-preview';
import { delay, of } from 'rxjs';

@Component({
  selector: 'app-sample',
  imports: [
    SiNavbarVerticalComponent,
    SiCardComponent,
    SiAccordionComponent,
    SiStatusBarComponent,
    SiSidePanelComponent,
    SiSidePanelContentComponent,
    SiCollapsiblePanelComponent,
    RouterLink,
    SiAccountDetailsComponent,
    SiApplicationHeaderComponent,
    SiHeaderAccountItemComponent,
    SiHeaderDropdownComponent,
    SiHeaderDropdownTriggerDirective,
    SiHeaderActionsDirective,
    SiHeaderBrandDirective,
    SiLaunchpadFactoryComponent,
    SiSystemBannerComponent,
    SiHeaderLogoDirective
  ],
  templateUrl: './content-tile-layout-full-scroll-vertical-nav.html'
})
export class SampleComponent {
  private readonly logEvent = inject(LOG_EVENT);
  protected readonly shouldBlink = !navigator.webdriver;
  protected readonly hideSystemBanner = toSignal(
    of(true).pipe(delay(navigator.webdriver ? 15000 : 5000)),
    { initialValue: false }
  );
  protected readonly collapsed = signal(true);
  protected readonly mode = signal<SidePanelMode>('scroll');
  protected readonly size = signal<SidePanelSize>('regular');

  protected readonly menuItems: NavbarVerticalItem[] = [
    {
      type: 'group',
      label: 'Home',
      icon: 'element-home',
      children: [
        {
          type: 'router-link',
          label: 'Sub Item',
          routerLink: 'subItem',
          badge: 4,
          badgeColor: 'warning'
        },
        { type: 'router-link', label: 'Sub Item 2', routerLink: 'subItem2' },
        { type: 'router-link', label: 'Sub Item 3', routerLink: 'subItem3' }
      ]
    },
    {
      type: 'group',
      label: 'Documentation',
      icon: 'element-document',
      children: [
        { type: 'router-link', label: 'Sub Item 4', routerLink: 'subItem4' },
        { type: 'router-link', label: 'Sub Item 5', routerLink: 'subItem5' },
        { type: 'router-link', label: 'Sub Item 6', routerLink: 'subItem6' }
      ]
    },
    {
      type: 'router-link',
      label: 'Energy & Operations',
      icon: 'element-trend',
      routerLink: 'energy'
    },
    {
      type: 'router-link',
      label: 'Test Coverage',
      icon: 'element-diagnostic',
      routerLink: 'coverage'
    }
  ];

  protected readonly statusItems: StatusBarItem[] = [
    { title: 'Emergency', status: 'danger', value: 4, action: item => this.logEvent(item) },
    { title: 'Life safety', status: 'danger', value: 0, action: item => this.logEvent(item) },
    { title: 'Security', status: 'danger', value: 0 },
    { title: 'Supervisory', status: 'danger', value: 0 },
    { title: 'Trouble', status: 'warning', value: 42, action: item => this.logEvent(item) },
    { title: 'Success', status: 'success', value: 200, action: item => this.logEvent(item) }
  ];

  protected counter(i: number): undefined[] {
    return new Array(i);
  }

  protected toggle(): void {
    this.collapsed.update(value => !value);
  }

  protected toggleMode(): void {
    this.mode.update(value => (value === 'over' ? 'scroll' : 'over'));
  }

  protected changeSize(): void {
    this.size.update(value => (value === 'regular' ? 'wide' : 'regular'));
  }
}
```

Template:

```html
<si-side-panel
  [class.has-system-banner]="!hideSystemBanner()"
  [collapsed]="collapsed()"
  [mode]="mode()"
  [size]="size()"
>
  <div class="has-navbar-fixed-top">
    @if (!hideSystemBanner()) {
      <si-system-banner
        class="fixed-top"
        message="System maintenance scheduled for 2 AM - 4 AM UTC"
        status="caution"
      />
    }

    <si-application-header [launchpad]="launchpad">
      <si-header-brand>
        <a siHeaderLogo routerLink="/" class="d-none d-md-flex"></a>
        <h1 class="application-name">Application name</h1>
      </si-header-brand>

      <si-header-actions>
        <button
          si-header-account-item
          type="button"
          name="Jane Smith"
          [siHeaderDropdownTriggerFor]="account"
        >
        </button>
        <ng-template #account>
          <si-header-dropdown>
            <si-account-details
              name="Jane Smith"
              email="jane.smith@example.org"
              company="ExampleOrg"
            />
          </si-header-dropdown>
        </ng-template>
      </si-header-actions>
    </si-application-header>
    <ng-template #launchpad>
      <si-launchpad-factory [apps]="[]" />
    </ng-template>
    <si-navbar-vertical
      navbarCollapseButtonText="collapse"
      navbarExpandButtonText="expand"
      [items]="menuItems"
    >
      <div class="si-layout-main-padding">
        <si-status-bar
          class="si-layout-status si-layout-top-element"
          [items]="statusItems"
          [blink]="shouldBlink"
        />

        <div class="si-layout-header">
          <h2 class="si-layout-title">Title describing what page content to expect</h2>
          <p class="si-layout-subtitle">
            Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
          </p>
        </div>

        <div class="row mt-8 mb-6">
          <div class="col">
            <si-card class="h-100" heading="Toggle the side panel">
              <div class="card-body" style="height: 300px" body>
                <button type="button" class="btn btn-secondary mt-2" (click)="toggle()">
                  Toggle side panel
                </button>
                <button type="button" class="btn btn-secondary mt-2 ms-2" (click)="toggleMode()">
                  {{ `${mode()} - Mode` }}
                </button>
                <button type="button" class="btn btn-secondary mt-2 ms-2" (click)="changeSize()">
                  {{ `${size()} - Width` }}
                </button>
              </div>
            </si-card>
          </div>
        </div>

        <div class="row">
          @for (key of counter(9); track $index) {
            <div class="col-xl-4 col-md-4 col-sm-6 mb-6">
              <si-card class="h-100" [heading]="'Card Heading ' + $index">
                <div class="card-body" style="height: 200px" body>Content {{ $index }}</div>
              </si-card>
            </div>
          }
        </div>
      </div>
    </si-navbar-vertical>
  </div>
  <si-side-panel-content heading="Title">
    <si-accordion>
      <si-collapsible-panel heading="Hey there">
        <div class="p-6"> And here we have some content </div>
      </si-collapsible-panel>
      <si-collapsible-panel heading="Another one">
        <div class="p-6"> And this is the content </div>
      </si-collapsible-panel>
      <si-collapsible-panel heading="Number three">
        <div class="p-6"> Nothing to see here </div>
      </si-collapsible-panel>
    </si-accordion>
  </si-side-panel-content>
</si-side-panel>
```
