pickout
Cool and powerful effect to select fields. Javascript vanilla and ~2kb gzipped.
DEMO PAGE
For syntax of the previous version click here
How to use
npm
npm install pickout --save
bower
bower install pickout --save
Inserting HTML
Include the style
...
Include the script
...
Or Using CDN
Taking advantage that cdn provides, you can use the pickout in cdnjs to include the files in your page:
...
...
Example of block the select field
<!-- Normal use --> Option: <!-- If the check is not required, submit a default value empty --> Option 1 Option 2 Option 3 Option 4 <!-- Using with icons --> Suit: <!-- If the check is not required, submit a default value empty --> Spade Club Heart Diamond
Attributes
data-icon
: Icon code, for example: "e602", simply use data-icon=""
;
Field selection with option group
<!-- Option group --> Country <!-- If the check is not required, submit a default value empty --> EUA Brazil Canada Ireland Spanish Italy Portugal
Set the select
pickout;
Another option
pickout;
OBS: Do not forget to declare the characters responsible dial if class use (.) If ID using the (#)
Search field
Field to search options within the modal, default is false
pickout;
Set all at once
You can assign to selects separately, however you can apply all at once, simply declare a class in common to all selects and inform the plugin, for example:
pickout;
Selecting multiple options
Simply enter the multiple HTML attribute in the field select what you want
Your skills <!-- If the check is not required, submit a default value empty --> PHP Ruby C++ Scrum Java Cobol Javascript AngularJS Ionic VueJS ReactJS React Native
to set the select to pickout
pickout;
For options already selected by default, uses the method
pickout;
With this method the pickout already initializes the tags of options with the selected attribute
Customize styles
To customize, simply add in your CSS rule with this pattern:
And the definition of pickout informs the theme
pickout;
Themes
theme - Modify the visual style, customized through CSS.
- clean (Default)
OBS: You can check or contribute more topics customizam the pickout completely. Theme styles
pickout;
Select with default values
State: <!-- Option selected by default --> Option 1 Option 2
It uses the updated function
pickout;
Current version stable
v2.0.1
Browser Support
Yes ✔ | Yes ✔ | 9+ ✔ | Yes ✔ | 8+ ✔ |
ChangeLog
v2.0.1
- New CSS class to wrap form
- New syntax: add div tag before select
- Bugfix: Search with spaces (by @alexsmonte)
v1.3.3
- Fix the arrow style
v1.3.1 / v1.3.2
- Add link Demo Page
- Styles themes
- Correction in modal
v1.3.0
- Multiple options
v1.2.1
- New Style theme
- Correction in modal css
v1.2.0
- Support to option group
- Optimizing for support to IE
- Separation of style themes css files
v1.1.3
- Search field
Contributing
- Check the open issues or open a new issue to start a discussion around your feature idea or the bug you found.
- Fork repository, make changes, add your name and link in the authors session readme.md
- Send a pull request
If you want a faster communication, find me on @ktquez
thank you