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
feat(dropdown): Add select all button to multiple option (#144)
* add select all button to multiple option dropdown
* reformat code and remove package.json packages
* reformat code and add spacing class to select all button
* fix code style
* reduce number of lines
* fix(dropdown): Fixed some formatting
-`props.filterable`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Flag if the dropdown menu is filterable
198
198
-`props.filter`**[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Default filter value
199
-
-`props.limit`**[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** Limit visible dropdown items. Use together with filterable flag.
200
199
-`props.placeholder`**[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Placeholder for text inputs (Filter input or Input only version)
200
+
-`props.limit`**[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** Limit visible dropdown items. Use together with filterable flag.
201
+
-`props.selectAll`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Show button to select all items
201
202
-`props.handle`**[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Function used to propagate data
202
203
203
204
### constructor
@@ -278,6 +279,12 @@ Handles submit action on multi select drop downs
278
279
279
280
Returns **void**
280
281
282
+
### onClickSelectAll
283
+
284
+
Handles select all action on multi select drop downs
285
+
286
+
Returns **void**
287
+
281
288
### getHeight
282
289
283
290
Gets the current height of the menu
@@ -421,6 +428,7 @@ As trigger type you can choose between an anchor, button or a select like lookin
421
428
-`props.limit`**[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** Limit visible dropdown items. Use together with filterable flag.
422
429
-`props.orientation`**[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Dropdown orientation. Can be either left or right
423
430
-`props.placeholder`**[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Placeholder for text inputs (Filter input or Input only version)
431
+
-`props.selectAll`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Show button to select all items
424
432
-`props.onChange`**[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Callback for react components to propagate value changes
0 commit comments