-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(module:segmented): now supports segmented with icon only (#8368)
* feat(module:segmented): now supports segmented with icon only * feat(module:segmented): now supports segmented with icon only
- Loading branch information
1 parent
18b898e
commit e8dea7a
Showing
3 changed files
with
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
order: 11 | ||
title: | ||
zh-CN: 只设置图标 | ||
en-US: With Icon only | ||
--- | ||
|
||
## zh-CN | ||
|
||
在 Segmented Item 选项中只设置 Icon。 | ||
|
||
## en-US | ||
|
||
Set `icon` without `label` for Segmented Item. |
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,14 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { NzSegmentedOptions } from 'ng-zorro-antd/segmented'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-segmented-with-icon-only', | ||
template: `<nz-segmented [nzOptions]="options"></nz-segmented>` | ||
}) | ||
export class NzDemoSegmentedWithIconOnlyComponent { | ||
options: NzSegmentedOptions = [ | ||
{ value: 'List', icon: 'bars' }, | ||
{ value: 'Kanban', icon: 'appstore' } | ||
]; | ||
} |
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