Hallo Saq,
heureka, it works.
For anyone who wants to use it, you can find it here:
https://szenio.de/Grid/#Scrolltotop

Thanks a lot Saq!

PS.:
Encouraged by this success it would be great generalize the function enabeling the widget to scroll to an id that is given as a param.
Perhaps we manage that also.



Am 27.04.2020 um 00:19 schrieb Saq Imtiaz:
Open the browser developer tools and the console. Do you see any error messages 
when loading your wiki? I would expect you to.

Your refresh method is not valid JavaScript. You can actually just remove it 
entirely. Remove the refresh method. It will inherit from the widget base class 
and that will be enough in this case. Make sure the tiddler has the correct 
type for JavaScript and module-type widget.

If it still doesn't work post your new code and the code for the button being 
used to trigger this. I'm currently not at a computer so that's the best I can 
do for now, hope that helps.


--
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5EA6AEC9.8000904%40googlemail.com.

Reply via email to