- Скопируйте папку select к себе в проект 2 .Установить пустой тэг с вашим id
- Импортируйте select из папки select в ваш main.js файл
- Через new Select(ваш селектор указываете) создаете новый селект
- Примерный код подключения плагина const select = new Select("#select", {
- selected: "Sport",
- placeholder: "Начальное сообщение",
- data: ["Sport", "Kulinariya", "Iphone", "Samsung"],
- Ваш обработчик onSelect(item) { console.log(item) } });
-
Notifications
You must be signed in to change notification settings - Fork 0
Yevgeniy-Ten/my-select-plugin
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|