-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Feature clear button #1872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature clear button #1872
Conversation
src/plugins/clear_button/plugin.js
Outdated
{ | ||
title: "Clear", | ||
className: "clear", | ||
libelle: "×", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be Label
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, sure , sorry keep the same doctrine
docs/plugins.md
Outdated
@@ -13,7 +13,7 @@ complete control. | |||
- All plugins live in their own folders in ["src/plugins"](../src/plugins). | |||
- 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, misstake, I thought it had not been updated, I had trouble finding what I was missing to use my SCSS file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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_button
displaying a button for clear input value(s)Add two examples for
clear button
rendering (simple and multiple select)Update doc for plugins (using SCSS instead LESS)
Don't hesitate to tel me any bad move or any improvement