Re: [tw5] Re: Is there a solution for triggering scrolling to to Top ( when you are not using the storyriver. )

2020-04-28 Thread Jan
Hello, for this behaviour, you can use the normal action-navigate widget and action-setfield setting the storyview to zooming in one button. cheers Jan Am 28.04.2020 um 10:15 schrieb Hubert: Hello, For anyone who wants to use it, you can find it here:

Re: [tw5] Re: Is there a solution for triggering scrolling to to Top ( when you are not using the storyriver. )

2020-04-28 Thread Jan
Hi, you need the $:/Plugins/JJ/Grid/scrolltotop.js, a restart and a button invoking the widget like <$button>scroll to top <$action-scrolltotop/> 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

Re: [tw5] Re: Is there a solution for triggering scrolling to to Top ( when you are not using the storyriver. )

2020-04-28 Thread '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 hubert...@gmail.com: > Hello, > >

Re: [tw5] Re: Is there a solution for triggering scrolling to to Top ( when you are not using the storyriver. )

2020-04-28 Thread Hubert
Hello, For anyone who wants to use it, you can find it here: > https://szenio.de/Grid/#Scrolltotop > > It works great, thanks for sharing Jan! It would be nice to have this

Re: [tw5] Re: Is there a solution for triggering scrolling to to Top ( when you are not using the storyriver. )

2020-04-27 Thread Jan
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

Re: [tw5] Re: Is there a solution for triggering scrolling to to Top ( when you are not using the storyriver. )

2020-04-26 Thread 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

Re: [tw5] Re: Is there a solution for triggering scrolling to to Top ( when you are not using the storyriver. )

2020-04-26 Thread Jan
Hi Saq, many thanks for your gentle explanation. Following your recipe I made what you can find below: It does not crash the Wiki or show the red sign, which is already great for a first approach;-) , but so far the button says that the widget is not defined: Can you give me another hint?

Re: [tw5] Re: Is there a solution for triggering scrolling to to Top ( when you are not using the storyriver. )

2020-04-26 Thread Jan
Hi Mat, gridlist uses some functions of TW like the list- , reveal- and buttonwidget but inserts the content into its own pagetemplate. That is why all the storyriver-related functions do not work. It would be great to be able to navigate to ids or classes. Jan Am 26.04.2020 um 10:22

Re: [tw5] Re: Is there a solution for triggering scrolling to to Top ( when you are not using the storyriver. )

2020-04-26 Thread Saq Imtiaz
In simple terms: macros -> text substitution or defining a variable widgets -> everything else So you need a widget. And widgets that cause an action, rather than display something, need to be triggered, typically by a button, checkbox, select etc. These are called action widgets and the

Re: [tw5] Re: Is there a solution for triggering scrolling to to Top ( when you are not using the storyriver. )

2020-04-26 Thread Mat
> > But isn't it all in a tiddler, $:/Plugins/JJ/Grid/Gridlist - ? > I think that this would work, which doesn't rely on a storylist: > > <$action-navigate $to="$:/Plugins/JJ/Grid/Gridlist"/> > OK, I just tried adding it in a button to one of your tiddlers and you're right it does NOT work.

Re: [tw5] Re: Is there a solution for triggering scrolling to to Top ( when you are not using the storyriver. )

2020-04-26 Thread Mat
> > my problem is, that the grid does not use storylist or storyriver, they > are not even displayed. I could try the navigator widget...I am not > optimistic with that. > But isn't it all in a tiddler, $:/Plugins/JJ/Grid/Gridlist - ? I think that this would work, which doesn't rely on a

Re: [tw5] Re: Is there a solution for triggering scrolling to to Top ( when you are not using the storyriver. )

2020-04-26 Thread Jan
Hi Saq, I think you got me...I do not really know what the difference is. I think all the js I did so far was macros. I finally should learn some of the basic concepts of programming js in TW ;-) Thanks for giving me a hint to start. Do I need a widget or can I perform that action with a

Re: [tw5] Re: Is there a solution for triggering scrolling to to Top ( when you are not using the storyriver. )

2020-04-26 Thread Jan
Hi Birthe, hi Mat, my problem is, that the grid does not use storylist or storyriver, they are not even displayed. I could try the navigator widget...I am not optimistic with that. FIrst I will use Saq`s apporach. Jan Am 25.04.2020 um 20:57 schrieb Mat: Maybe | trigger ... <$set