Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Trigger events when users click list items #88

Open
ChunkyProgrammer opened this issue Mar 15, 2023 · 2 comments
Open

Trigger events when users click list items #88

ChunkyProgrammer opened this issue Mar 15, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ChunkyProgrammer
Copy link
Member

"Would it be possible to trigger an event like qualitySelected when a user click on the menu list item?
It could be useful to track users' preference among the listed choices."
jfujita#18

@ChunkyProgrammer ChunkyProgrammer added enhancement New feature or request good first issue Good for newcomers labels Mar 15, 2023
@Aniruddh302001
Copy link

Could you explain it more precisely? With any image like where should the event get triggered?

@ChunkyProgrammer
Copy link
Member Author

Could you explain it more precisely? With any image like where should the event get triggered?

Not sure what you mean by image?

It should be triggered somewhere in this function and pass the currently selected option.

Here's an example of how videojs triggers events:
https://github.com/silvermine/videojs-quality-selector/blob/a40e9a680382023bdde8b240e3093142b905343f/src/js/components/QualityOption.js#L40

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants