/* main.ts or main.js */import'@andy922200/vue-multi-select/dist/vue-multi-select.css'importVueMultiSelectfrom'@andy922200/vue-multi-select'Vue.use(VueMultiSelect)
// SingleLayer Option Object Demo
{
"key1":"value1",
"key2":"value2",
"key3":"value3",
"label": "label1, This should be included.",
"groupName": "If you are using groupMode, this key-value pair should be included"
}
// DoubleLayer FatherOption Object Demo
{
"label": "NodeJS",
"value": "nodejs"
}
// DoubleLayer ChildrenOption Object Demo
{
"key1":"value1",
"key2":"value2",
"key3":"value3",
"label": "label1, This should be included.",
"fatherOptionLabel": "This value will be generated from 'DoubleLayer FatherOption Object label'",
"groupName": "If you are using groupMode, this key-value pair should be included"
}
<vue-multi-select><template#closeBtn="{closeMethod}"><button@click="closeMethod">
Close
</button></template><template#spinner>
Your Spinner Component
</template></<vue-multi-select>
Slot
Name
Method
closeBtn
closeMethod
applyBtn
applyMethod
selectAllBtn
selectAllMethod
clearBtn
clearSelectedOptionsMethod
spinner
None
Built With
Node.js - Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
Vue-Sfc-Rollup - vue-sfc-rollup is a CLI templating utility that scaffolds a minimal setup for compiling a Vue Single File Component (SFC) - or library of multiple SFCs
TypeScript - TypeScript extends JavaScript by adding types.