Page 1 of 1

generic f5 function

Posted: Friday 05 May 2023 12:55
by pvklink
Hi, i made a refresh block for my dashboard.
I like to use this block on more pages and it must refresh the current page and stay there,,,
With my current config (specific url) i cant reuse this block..
Is there a way to do this?

blocks['f5'] =
{
title: '',
icon: 'fas fa-light fa-arrow-rotate-right',
width: 1,
url: 'http://<ip>:83/index.html?folder=custom_fs',
hide_data: true,
switch: true,
last_update: false,
newwindow: 0,
};

Re: generic f5 function

Posted: Friday 05 May 2023 13:02
by Lokonli
You can add start_page as parameter to the Dashticz URL to let Dashticz start at that specific page. Add:

Code: Select all

&start_page=3
You have to create a block for everything page you want to have a refresh button on. Or, if you are creative, generate the blocks with a js function.