Pipes
NG-ZORRO experiments are features that are released but not yet considered stable or production ready
Developers and users can opt-in into these features before they are fully released. But breaking changes may occur with any release.
Common Pipe Collections in Projects
When To Use#
- After introducing Pipe, use it like angular's default Pipe
import { NzPipesModule } from 'ng-zorro-antd/pipes';
Examples
- 200 B
- 1 kB
- 1 MB
- 1 MB
- 1 GB
- 1 TB
- 1024 MB
Loading...
Default
%
rem
Loading...
Ant Design, a design language for ba...
Loading...
Max [7, 8, 2, 3]
Min [7, 8, 2, 3]
Sum [7, 8, 2, 3]
Avg [7, 8, 2, 3]
Loading...
Name | Age | Address |
---|---|---|
John Brown | 32 | - |
Jim Green | 42 | - |
Joe Black | 32 | Sidney No. 1 Lake Park |
Loading...
I am
innerHTML
Loading...
Ant Design
Ant Design
Loading...
API#
nzSafeNull#
Property | Description | Type | Default |
---|---|---|---|
replace | Replace character | string | '' |
nzBytes#
Property | Description | Type | Default |
---|---|---|---|
decimal | Decimal | number | '0' |
from | Unit of current value | string | 'B' |
to | Units converted to target value | string | '' |
nzToCssUnit#
Property | Description | Type | Default |
---|---|---|---|
defaultUnit | Default Unit | string | 'px' |
nzEllipsis#
Property | Description | Type | Default |
---|---|---|---|
length | Truncate length | number | '' |
suffix | Replace character | string | '' |
nzAggregate#
Property | Description | Type | Default |
---|---|---|---|
method | Aggregation | 'sum' | 'max' | 'min' | 'avg' | '' |
nzSanitizer#
Property | Description | Type | Default |
---|---|---|---|
type | sanitizer type | string | 'html' |