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

Suggestion #17

Open
malipetek opened this issue Sep 25, 2016 · 3 comments
Open

Suggestion #17

malipetek opened this issue Sep 25, 2016 · 3 comments

Comments

@malipetek
Copy link

I think I will modify source code for this purpose. But it would be nice to have a onclick callback in options for each event. It even might pass the element DOM node as an argument.

@roelandp
Copy link

roelandp commented Sep 30, 2016

this could indeed be useful. For now I think it is possible to add a listener via for example jquery....

$('.time-entry.').on('click', function(){
    console.log($(this).data('whateverdatayouassignedinthesetup'));
});

@malipetek
Copy link
Author

Thanks for the suggestion, I did not notice the easy way.

@stevenaanen
Copy link

Seems like a good suggestion @malipetek. Of course you can do this outside of the plugin (using jQuery or just javascript), but i can imagine that a callback function in the settings would make things extra simple and safer with respect to possible future changes to the Timetable DOM.

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

3 participants