Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/angular-examples' into 'main'
Feature/angular examples See merge request siemens-ix/siemens-ix!29
- Loading branch information
Showing
152 changed files
with
2,944 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages/angular-test-app/src/preview-examples/about-and-legal.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* COPYRIGHT (c) Siemens AG 2018-2022 ALL RIGHTS RESERVED. | ||
*/ | ||
import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-about-and-legal', | ||
template: ` | ||
<ix-basic-navigation> | ||
<ix-menu #menu> | ||
<ix-menu-about> | ||
<ix-menu-about-item label="Tab 1">Content 1</ix-menu-about-item> | ||
<ix-menu-about-item label="Tab 2">Content 2</ix-menu-about-item> | ||
</ix-menu-about> | ||
</ix-menu> | ||
</ix-basic-navigation> | ||
`, | ||
}) | ||
export class AboutAndLegal implements AfterViewInit { | ||
@ViewChild('menu', { read: ElementRef }) | ||
menuRef!: ElementRef<HTMLIxMenuElement>; | ||
|
||
ngAfterViewInit() { | ||
const { nativeElement } = this.menuRef; | ||
nativeElement.toggleAbout(true); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/angular-test-app/src/preview-examples/basic-navigation-without-header.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* COPYRIGHT (c) Siemens AG 2018-2022 ALL RIGHTS RESERVED. | ||
*/ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-basic-navigation-without-header', | ||
template: ` | ||
<ix-basic-navigation hideHeader> | ||
<ix-menu> | ||
<ix-menu-item>Item 1</ix-menu-item> | ||
<ix-menu-item>Item 2</ix-menu-item> | ||
</ix-menu> | ||
</ix-basic-navigation> | ||
`, | ||
}) | ||
export class BasicNavigationWithOutHeader {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* COPYRIGHT (c) Siemens AG 2018-2022 ALL RIGHTS RESERVED. | ||
*/ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-blind', | ||
template: ` | ||
<ix-blind label="Example"> | ||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy | ||
eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam | ||
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet | ||
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit | ||
amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam | ||
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed | ||
diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. | ||
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor | ||
sit amet. | ||
</ix-blind> | ||
`, | ||
}) | ||
export class Blind {} |
Oops, something went wrong.