There are few options on how to include/import Virtual Select into your project.
Install the Virtual Select Js library using command prompt from the root directory of the project:
npm install virtual-select-plugin --save
Link the Virtual Select package.
<!-- CSS File --> <link rel="stylesheet" href="./assets/libs/virtual-select-plugin/virtual-select.min.css"> <!-- JavaScript File --> <script src="assets/libs/virtual-select-plugin/virtual-select.min.js"></script>
Check the below example how to use and make it working Virtual Select on any page.
HTML
<div id="sample-select"></div>
JavaScript
VirtualSelect.init({ ele: '#sample-select', options: [ { label: 'Options 1', value: '1' }, { label: 'Options 2', value: '2' }, { label: 'Options 3', value: '3' }, ], selectedValue: 0 });
Be the first to know about new updates and exclusive discounts. No spam, just great offers!
How about
With over 7 years of experienced team, we specialize in delivering custom projects for startups, blue-chip companies, and government agencies. We have successfully completed over 250+ projects, providing tailored solutions that meet the unique needs of each client.
Hire Us© Domiex Created & Crafted by SRBThemes.