You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -248,7 +248,8 @@ The following list of settings are supported by the component. Configure the set
248
248
| searchBy | Array | Search the list by certain properties of the list item. Ex: ["itemName, "id","name"]. Deafult is , it will search the list by all the properties of list item |[]|
249
249
| lazyLoading | Boolean | Enable lazy loading. Used to render large datasets. | false |
250
250
| showCheckbox | Boolean | Show or hide checkboxes in the list | true |
251
-
251
+
| addNewItemOnFilter | Boolean | Whe you filter items and if, the item is not found, you can add the text as new item to the list | false |
252
+
| addNewButtonText | String | The text in the button when `addNewItemOnFilter` is enabled | 'Add' |
252
253
253
254
### Events
254
255
-`onSelect` - Return the selected item on selection.
@@ -265,6 +266,8 @@ The following list of settings are supported by the component. Configure the set
265
266
Example : (onClose)="onClose($event)"
266
267
-`onScrollToEnd` - Callback event fired when the dropdown list is scrolled to the end. Usually used with virtual scrolling, to load data on scroll.
267
268
Example : (onScrollToEnd)="fetchMore($event)"
269
+
-`onAddFilterNewItem` - Callback event fired when you click the `Add` button which will appear when `addNewItemOnFilter` setting is enabled.
270
+
Example : (onAddFilterNewItem)="onAddItem($event)"
268
271
269
272
## Run locally
270
273
- Clone the repository or downlod the .zip,.tar files.
<a[routerLink]="['searchFilterByOneProperty']" routerLinkActive="active" href="#" class="list-group-item list-group-item-action">Search Filter By one Property/key</a>
45
+
<a[routerLink]="['searchfilterAddNewItem']" routerLinkActive="active" href="#" class="list-group-item list-group-item-action">Search and Add New Item</a>
0 commit comments