Hi,
you need the $:/Plugins/JJ/Grid/scrolltotop.js, a restart and a button
invoking the widget like
<$button>scroll to top
<$action-scrolltotop/>
</$button>
Yours Jan
Am 28.04.2020 um 11:47 schrieb 'Peter Buyze' via TiddlyWiki:
Jan,
forgive my ignorance, but I dragged your plug-in to my wiki expecting
to see that button somewhere, but I don't. What do I need to do?
--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:
https://tutanota.com
28 Apr 2020, 11:15 by [email protected]:
Hello,
For anyone who wants to use it, you can find it here:
https://szenio.de/Grid/#Scrolltotop
<https://www.google.com/url?q=https%3A%2F%2Fszenio.de%2FGrid%2F%23Scrolltotop&sa=D&sntz=1&usg=AFQjCNGdYuAiu5417ZRxpoxSFoH8Fnevgw>
It works great, thanks for sharing Jan!
It would be nice to have this action implemented on opening a
tiddler in the zoomin story view and as part of any other single
tiddler mode(s) that could be introduced in the future. But that's
a discussion for a different thread.
Thanks again!
Hubert
On Monday, 27 April 2020 11:09:55 UTC+1, Jan wrote:
Hallo Saq,
heureka, it works.
For anyone who wants to use it, you can find it here:
https://szenio.de/Grid/#Scrolltotop
<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]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/8a099897-c647-4868-9cb4-faad6a3574e9%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/8a099897-c647-4868-9cb4-faad6a3574e9%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/M6-AoNj--3-2%40tutamail.com
<https://groups.google.com/d/msgid/tiddlywiki/M6-AoNj--3-2%40tutamail.com?utm_medium=email&utm_source=footer>.
--
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/5EA85DE0.2050304%40googlemail.com.