Scroll position(amount) in dashboard Code Mode

Junya Fujiyoshi shared this question 4 days ago
Awaiting Reply

Hi,

May I ask you one question regarding the scroll position in dashboard Code Mode?

I want to get the amount to be scrolled from top of the dashboard canvas in Code Mode.

Though this is generally possible using scrollTop() jQuery method, it seems scrollTop() does not work in Code Mode.

Do you have any idea to get the amount to be scrolled from top of the dashboard canvas?

I apologize if my question is not clear.

Regards,

Junya

Comments (1)

photo
1

Hi Junya,

I hope you're doing well.

So scrollTop() is a method of the library jQuery. Does your code include an import/require statement for jQuery?

If you are and you're still experiencing this problem, it might be useful to get a look at your code. I could then take a look and maybe involve one of the devs as well.

If you have access to Jira, this ticket describes the implementation of support for libraries in code mode: https://jira.yellowfin.bi/browse/YFN-15924

Kind regards,

Chris