vanillaSelectBox icon indicating copy to clipboard operation
vanillaSelectBox copied to clipboard

Add option for All in Multi-select

Open tleifj opened this issue 3 years ago • 1 comments

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!

tleifj avatar Jun 08 '22 23:06 tleifj

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);

fyoshino avatar Nov 08 '22 17:11 fyoshino