Skip to content

itsmewes/itsme-dropdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

itsme-dropdown

With no dependencies.

Sample

HTML

<select name="colours" id="colours">
    <option value="red">Red</option>
    <option value="yellow">Yellow</option>
    <option value="green">Green</option>
    <option value="orange">Orange</option>
    <option value="teal">Teal</option>
</select>

JavaScript

// without options
new itsmeDropdown('colours');
// with options
new itsmeDropdown('colours', {
    width: 150,
    placeholder: 'Please Select'
});

Options

Key Default Description
placeholder -- Select -- The text set to be shown by default before the options are shown.
arrow \u25BE The arrow indicator to show that it is a dropdown

About

A customisable dropdown

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published