-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core/dropdown-button): add dropdown-button (#229)
Co-authored-by: Lukas Maurer <lukas.maurer@siemens.com> Co-authored-by: Daniel Leroux <daniel.leroux@siemens.com>
- Loading branch information
1 parent
6d55b93
commit 8d6ae8b
Showing
25 changed files
with
1,022 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
packages/angular-test-app/src/preview-examples/dropdown-button-icon.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,31 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2022 Siemens AG | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-dropdown-button-icon', | ||
template: ` | ||
<ix-dropdown-button label="" variant="Primary" icon="checkboxes"> | ||
<ix-dropdown-item label="Item 1" value="1"></ix-dropdown-item> | ||
<ix-dropdown-item label="Item 2" value="2"></ix-dropdown-item> | ||
</ix-dropdown-button> | ||
<ix-dropdown-button label="" variant="Primary" outline icon="checkboxes"> | ||
<ix-dropdown-item label="Item 1" value="1"></ix-dropdown-item> | ||
<ix-dropdown-item label="Item 2" value="2"></ix-dropdown-item> | ||
</ix-dropdown-button> | ||
<ix-dropdown-button label="" variant="Primary" ghost icon="checkboxes"> | ||
<ix-dropdown-item label="Item 1" value="1"></ix-dropdown-item> | ||
<ix-dropdown-item label="Item 2" value="2"></ix-dropdown-item> | ||
</ix-dropdown-button> | ||
<ix-dropdown-button label="" variant="Primary" disabled icon="checkboxes"> | ||
</ix-dropdown-button> | ||
`, | ||
}) | ||
export class Dropdown {} |
46 changes: 46 additions & 0 deletions
46
packages/angular-test-app/src/preview-examples/dropdown-button.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,46 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2022 Siemens AG | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-dropdown-button', | ||
template: ` | ||
<ix-dropdown-button label="Dropdown" variant="Primary" icon="checkboxes"> | ||
<ix-dropdown-item label="Item 1" value="1"></ix-dropdown-item> | ||
<ix-dropdown-item label="Item 2" value="2"></ix-dropdown-item> | ||
</ix-dropdown-button> | ||
<ix-dropdown-button | ||
label="Dropdown" | ||
variant="Primary" | ||
outline | ||
icon="checkboxes" | ||
> | ||
<ix-dropdown-item label="Item 1" value="1"></ix-dropdown-item> | ||
<ix-dropdown-item label="Item 2" value="2"></ix-dropdown-item> | ||
</ix-dropdown-button> | ||
<ix-dropdown-button | ||
label="Dropdown" | ||
variant="Primary" | ||
ghost | ||
icon="checkboxes" | ||
> | ||
<ix-dropdown-item label="Item 1" value="1"></ix-dropdown-item> | ||
<ix-dropdown-item label="Item 2" value="2"></ix-dropdown-item> | ||
</ix-dropdown-button> | ||
<ix-dropdown-button | ||
label="Dropdown" | ||
variant="Primary" | ||
disabled | ||
icon="checkboxes" | ||
> | ||
</ix-dropdown-button> | ||
`, | ||
}) | ||
export class Dropdown {} |
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
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
Oops, something went wrong.