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

Add default callback functions #376

Open
thomasfrobieter opened this issue Jun 15, 2020 · 0 comments
Open

Add default callback functions #376

thomasfrobieter opened this issue Jun 15, 2020 · 0 comments

Comments

@thomasfrobieter
Copy link

Would be very nice to have some callback functions, especially 'init'.

I know, it's possible to add callbacks with the custom initialisation, but if Shariff is used for eg. as a Drupal Module, it would be senseless complicated to write a custom initialisation just to have a callback. From my point of view, it would be enough to fire a $(document).trigger('shariff:init'); after Shariff is initialised.

Use case example: We added a simple Instagram link (within the .shariff > ul) with jQuery, to do this we needed to use window.onload plus timeout.. and this really sucks.

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

No branches or pull requests

1 participant