-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: taiga-family-bot <[email protected]>
- Loading branch information
1 parent
b5c4156
commit 47d7178
Showing
11 changed files
with
216 additions
and
78 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
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
52 changes: 52 additions & 0 deletions
52
projects/demo/src/modules/components/items-with-more/examples/3/index.html
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,52 @@ | ||
<tui-items-with-more | ||
side="start" | ||
[itemsLimit]="3" | ||
> | ||
<ng-container *ngFor="let item of items; let first = first"> | ||
<ng-container *tuiItem> | ||
<tui-icon | ||
*ngIf="!first" | ||
icon="@tui.chevron-right" | ||
[style.border-width.rem]="0.25" | ||
[style.opacity]="0.25" | ||
/> | ||
<button | ||
appearance="flat" | ||
size="xs" | ||
tuiButton | ||
type="button" | ||
> | ||
{{ item }} | ||
</button> | ||
</ng-container> | ||
</ng-container> | ||
<ng-template | ||
let-index | ||
tuiMore | ||
> | ||
<button | ||
appearance="flat" | ||
iconStart="@tui.ellipsis" | ||
size="xs" | ||
tuiDropdownOpen | ||
tuiIconButton | ||
type="button" | ||
[tuiDropdown]="dropdown" | ||
> | ||
More | ||
</button> | ||
<ng-template #dropdown> | ||
<tui-data-list size="s"> | ||
<ng-container *ngFor="let item of items; let i = index"> | ||
<button | ||
*ngIf="i < index" | ||
tuiOption | ||
type="button" | ||
> | ||
{{ item }} | ||
</button> | ||
</ng-container> | ||
</tui-data-list> | ||
</ng-template> | ||
</ng-template> | ||
</tui-items-with-more> |
26 changes: 26 additions & 0 deletions
26
projects/demo/src/modules/components/items-with-more/examples/3/index.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,26 @@ | ||
import {NgForOf, NgIf} from '@angular/common'; | ||
import {Component, inject} from '@angular/core'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {encapsulation} from '@demo/emulate/encapsulation'; | ||
import {TuiButton, TuiDataList, TuiDropdown, TuiIcon, TuiLink} from '@taiga-ui/core'; | ||
import {TuiItemsWithMore} from '@taiga-ui/kit'; | ||
|
||
@Component({ | ||
standalone: true, | ||
imports: [ | ||
NgForOf, | ||
NgIf, | ||
TuiButton, | ||
TuiDataList, | ||
TuiDropdown, | ||
TuiIcon, | ||
TuiItemsWithMore, | ||
TuiLink, | ||
], | ||
templateUrl: './index.html', | ||
encapsulation, | ||
changeDetection, | ||
}) | ||
export default class Page { | ||
protected readonly items = inject<readonly string[]>('Pythons' as any); | ||
} |
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
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.