Why my 2 embedded macro (timeline based) are not refreshed automatically

40 views
Skip to first unread message

vpl

unread,
Nov 26, 2020, 7:31:33 AM11/26/20
to TiddlyWiki
Hi,

I want to use the new fantastic timeline plugin the fommoing way
I have range widgets for setting 2 fields
I have developped a small (javascript based) macro that returns a filter definition that is expected to be used by the time-line pluging
This works one time (when I edit or lauch the tiddler)
But when I change the range value my javascript macro (TLfilter) is not called
As if the timeline macro was not called.
When my TLfilter macro is invoked outside the time-line macro it is well refreshed eachtime I change the range value ...

I need a TW5 expert here ... totally lost !!

Thanks a lot

Regards
Define the period of interest: <$range field='period' min=0 max=2000 increment=100/> {{!!period}}

Define the window of interest: <$range field='window' min=0 max=2000 increment=100/> {{!!window}}

<<timeline-vertical class:primary date:"date" filter:<<TLfilter  window:{{!!window}} type:{{!!period}} filter:"[tag[test-1]sort[date]]">>>>

TW Tones

unread,
Nov 26, 2020, 5:41:04 PM11/26/20
to TiddlyWiki
vpl,

There would be a way to refresh your javascript within the tiddlywiki platform, perhaps the dev forum is best for that,

However if you do anything to force a refresh on the tiddler as you do when you open a tiddler it should refresh. Try setting a timestamp on a field as needed and it should refresh.

Regards
Tones

Reply all
Reply to author
Forward
0 new messages