vanillaSelectBox
vanillaSelectBox copied to clipboard
Add option for All in Multi-select
Right now when a user selects All Items in a multi-select input, it just says "All". It would be great if you could specify what that says as an option like, "All Cars". thanks for a great library!
You can specify a translation in options when you create the Vanilla Select Box.
Example:
var vanillaSelectBoxTranslations = { all: "All cars", item: "car", items: "cars", selectAll: "Select all cars", clearAll: "Clear all" };
var vanillaSelectBoxOptions = { translations: vanillaSelectBoxTranslations, placeHolder: "Select cars" };
var selectBox = new vanillaSelectBox("#selectCars", vanillaSelectBoxOptions);