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

HLJS content rendered event #73

Open
nine-2-five opened this issue Jul 31, 2016 · 4 comments
Open

HLJS content rendered event #73

nine-2-five opened this issue Jul 31, 2016 · 4 comments

Comments

@nine-2-five
Copy link

I have a large dataset that binds to a view with ng-repeat. Is there an event that triggers when the updated dom with hljs js and css is done?
I need a height of the list so I can scrollTo bottom.

@pc035860
Copy link
Owner

pc035860 commented Aug 1, 2016

Hi @isvaljek ,

There's actually an undocumented attribute hljs-onhighlight or onhighlight.
The expression in it will execute whenever the hljs directive starts to highlight the content.

If you want one for "after highlight", we'll have to add a new attribute like hljs-onafterhighlight.

@pc035860
Copy link
Owner

pc035860 commented Aug 1, 2016

You can try hljs-onhighlight first, see if it solves your problem.

@ghost
Copy link

ghost commented Sep 23, 2016

What is the status of this? It would be useful to have a complete event too, so we know when the content is rendered. Could it be possible @pc035860 ? Thanks.

@ghost ghost mentioned this issue Sep 23, 2016
@pc035860
Copy link
Owner

@gala132 I think the on documented hljs-onhighlight may solve the issue. No response from @isvaljek yet. You can try it yourself.

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

2 participants