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

Question: "selecting" event, next to "selecteditem" and "deselecteditem" ? #63

Closed
chrimez opened this issue Oct 9, 2023 · 3 comments
Closed

Comments

@chrimez
Copy link

chrimez commented Oct 9, 2023

Hi. I am working on replacing jQuery-ui, which offers 7 relevant events, among them "selecting", "unselecting".
If I understood correctly, "Selectable" 0.19.1 does set respective classes (for formatting/display) "ui-selecting" when transitioning to "ui-selected", but it seems respective "selecting" event is not provided. Is that understanding correct?

@chrimez chrimez changed the title "selecting" event, next to "selecteditem" and "deselecteditem" ? Question: "selecting" event, next to "selecteditem" and "deselecteditem" ? Oct 9, 2023
@Mobius1
Copy link
Owner

Mobius1 commented Oct 9, 2023

I need to update the docs as they're outdated. There isn't currently a "selecting" event, but I can add it in for the next release.

@chrimez
Copy link
Author

chrimez commented Oct 9, 2023

Great - I considered various options to work around it. And I think it would make sense to include it. E.g. I figured no easy and straight forward ways to identify selecting an already selected item again - cause when "slectedItem" is triggered, any element is selected already.

Note I think it can make best sense to include both: selecting and un/deselecting .

@chrimez chrimez closed this as completed Oct 9, 2023
@chrimez chrimez reopened this Oct 9, 2023
@chrimez chrimez closed this as completed Oct 11, 2023
@chrimez
Copy link
Author

chrimez commented Oct 11, 2023

Perfect - thanks a lot :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants