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

itemCreated dispatcher #336

Closed
Inqnuam opened this issue Oct 25, 2021 · 3 comments
Closed

itemCreated dispatcher #336

Inqnuam opened this issue Oct 25, 2021 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@Inqnuam
Copy link

Inqnuam commented Oct 25, 2021

Hello,
as I can see in source code there's a dispatcher for "itemCreated" and we can use it with "on:itemCreated".
Could you expose that "API" in documentation and into interface so we can do things like POST to db or open a modal to enter more info once an item is created
Thanks for this component it is very useful!

Also I've customised your module to add tooltips on labels in Items List when labels string length is > 60
Screenshot 2021-10-25 at 11 50 45
and tooltip boolean parameter
Screenshot 2021-10-25 at 11 52 11
Could you please add this functionality but with a better implementation ?

@rob-balfre
Copy link
Owner

Not to self to add itemCreated to docs

<Select on:itemCreated={doSomething} />

@rob-balfre rob-balfre added the enhancement New feature or request label Nov 4, 2021
@rob-balfre
Copy link
Owner

@Inqnuam no plans to add tooltip to svelte-select. Nice solution though. Can you share the code on a fork so I can add to examples?

@rob-balfre rob-balfre added this to the v5 milestone Nov 14, 2021
rob-balfre added a commit that referenced this issue Apr 12, 2022
@rob-balfre
Copy link
Owner

Documented itemCreated in v5 docs

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

2 participants