Skip to content

Commit e047ac2

Browse files
authored
feat(module:select): add nzOnClear callback (#9188)
1 parent d446d5f commit e047ac2

4 files changed

Lines changed: 72 additions & 52 deletions

File tree

components/select/doc/index.en-US.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ cover: 'https://gw.alipayobjects.com/zos/alicdn/_0XzgOis7/Select.svg'
66
description: A dropdown menu for displaying choices.
77
---
88

9-
109
## When To Use
1110

1211
- A dropdown menu for displaying choices - an elegant alternative to the native `<select>` element.
1312
- Utilizing [Radio](/components/radio/en) is recommended when there are fewer total options (less than 5).
1413
- You probably need [AutoComplete](/components/auto-complete) if you're looking for an input box that can be typed or selected.
1514

16-
1715
## API
1816

1917
```html
@@ -67,13 +65,14 @@ description: A dropdown menu for displaying choices.
6765
| `(nzOpenChange)` | dropdown expand change callback | `EventEmitter<boolean>` | `false` |
6866
| `(nzScrollToBottom)` | Called when dropdown scrolls to bottom | `EventEmitter<any>` | - |
6967
| `(nzOnSearch)` | Callback function that is fired when input changed. | `EventEmitter<string>` | - |
68+
| `(nzOnClear)` | Callback function that clear the selected items | `EventEmitter<any>` | - |
7069
| `(nzFocus)` | focus callback | `EventEmitter<any>` | - |
7170
| `(nzBlur)` | blur callback | `EventEmitter<any>` | - |
7271

7372
### nz-option
7473

7574
| Property | Description | Type | Default |
76-
| ------------------- | -------------------------------------------------------------------------------------------------------------------------- | ------------------- | ------- |
75+
|---------------------|----------------------------------------------------------------------------------------------------------------------------|---------------------|---------|
7776
| `[nzDisabled]` | Disable this option | `boolean` | `false` |
7877
| `[nzTitle]` | Native title hint on this option | `string \| number` | - |
7978
| `[nzLabel]` | The text show in nz-select and dropdown menu | `string \| number` | - |
@@ -85,14 +84,14 @@ description: A dropdown menu for displaying choices.
8584
### nz-option-group
8685

8786
| Property | Description | Type | Default |
88-
| ----------- | ----------- | --------------------------------------- | ------- |
87+
|-------------|-------------|-----------------------------------------|---------|
8988
| `[nzLabel]` | Group label | `string \| number \| TemplateRef<void>` | - |
9089

9190
## Methods
9291

9392
### nz-select
9493

95-
| Name | Description |
96-
| ------- | ------------ |
94+
| Name | Description |
95+
|-----------|--------------|
9796
| `blur()` | Remove focus |
9897
| `focus()` | Get focus |

0 commit comments

Comments
 (0)