Skip to content
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

Merged
merged 5 commits into from
Sep 22, 2022
Merged

Feature clear button #1872

merged 5 commits into from
Sep 22, 2022

Conversation

fabienwnklr
Copy link
Contributor

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

{
title: "Clear",
className: "clear",
libelle: "×",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be Label?

Copy link
Contributor Author

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.
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor

@risadams risadams left a 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!

@risadams risadams merged commit 9f1d5cc into selectize:master Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants