Feature clear button#1872
Feature clear button#1872risadams merged 5 commits intoselectize:masterfrom fabienwnklr:feature-clear_button
Conversation
src/plugins/clear_button/plugin.js
Outdated
| { | ||
| title: "Clear", | ||
| className: "clear", | ||
| libelle: "×", |
There was a problem hiding this comment.
yes, sure , sorry keep the same doctrine
docs/plugins.md
Outdated
| - Plugin names should be in follow the format: `/[a-z_]+$` | ||
| - JS source should live in a "plugin.js" file (required). | ||
| - CSS should live in a "plugin.less" file (optional). It will be bundled at build time. | ||
| - CSS should live in a "plugin.scss" file (optional) and include it into `src/scss/selectize.scss`. It will be bundled at build time. |
There was a problem hiding this comment.
For compatibility with the older versions of bootstrap, there should be both a sass and less version of styles.
This might change in the future if we decide to drop support for older versions, but there is enough of a user base that still does use older versions that we should try to support them where possible
There was a problem hiding this comment.
sure, misstake, I thought it had not been updated, I had trouble finding what I was missing to use my SCSS file
risadams
left a comment
There was a problem hiding this comment.
Can you please also add a less stylesheet (it should mostly be a copy/paste) and check out the comments below?
Some unit tests would be great if time permits.
good job, thanks!
New plugin
clear_buttondisplaying a button for clear input value(s)Add two examples for
clear buttonrendering (simple and multiple select)Update doc for plugins (using SCSS instead LESS)
Don't hesitate to tel me any bad move or any improvement