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] Tag editor #245

Closed
gregmsanderson opened this issue Jan 9, 2024 · 5 comments
Closed

[feature] Tag editor #245

gregmsanderson opened this issue Jan 9, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@gregmsanderson
Copy link

It would be nice to have a form text input that could act as a tag editor. Where you can type e.g example, press Enter/Return, and have it shown as a tag.

The closest seems to be https://preline.co/docs/advanced-select.html#tags but that assumes pre-made values (a select).

I was thinking something like this (I didn't write it):

https://codepen.io/atomgiant/pen/QWjWgKz

@olegpix
Copy link
Collaborator

olegpix commented Jan 15, 2024

It would be nice to have a form text input that could act as a tag editor. Where you can type e.g example, press Enter/Return, and have it shown as a tag.

The closest seems to be https://preline.co/docs/advanced-select.html#tags but that assumes pre-made values (a select).

I was thinking something like this (I didn't write it):

https://codepen.io/atomgiant/pen/QWjWgKz

Thanks for the suggested improvements. We will definitely think about introducing them in future versions.

@RSchmitzHH
Copy link

It would be nice to have a form text input that could act as a tag editor. Where you can type e.g example, press Enter/Return, and have it shown as a tag.

The closest seems to be https://preline.co/docs/advanced-select.html#tags but that assumes pre-made values (a select).

I was thinking something like this (I didn't write it):

https://codepen.io/atomgiant/pen/QWjWgKz

This would indeed be extremely cool!

@RSchmitzHH
Copy link

Is there something for this in Pro? Or planned to be introduced?

Btw I have seen that, before the first item is selected, the advanced select actually has the desired behaviour. You can freely type anything and create a new tag. This is not anymore the case if a first tag is select, i.e., you cannot type anything not in the list of options then.

So may it be possible to achieve this behaviour also if there is something selected?

@jahaganiev
Copy link
Member

Hey @RSchmitzHH - yes, as @olegpix mentioned, it's on the roadmap.

Just a quick note, Preline Pro is built right on top of Preline UI. This means you won't miss out on any JS (JavaScript) components. Everything you see in Pro is also in the open-source Preline UI. We want to make sure developers get all the js features, no matter which version they pick.

Cheers!

@jahaganiev jahaganiev added the enhancement New feature or request label Feb 6, 2024
@jahaganiev
Copy link
Member

Hey folks, requested tags feature has been added with the new release v2.1.0 - https://preline.co/docs/advanced-select.html#tags

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants