Posts: 325
Threads: 86
Joined: May 2017
Reputation:
0
Yesterday, 15:18
(This post was last modified: Yesterday, 15:18 by gdimaria.)
I need to create thirty pages, one for each floor of a skyscraper.
I'd like to use a vertical slider (1-30) in the homepage, next to the image and then, based on the floor selected, jump to the relative page (/apps/data/visu/#xxx).
How could I do it?
Peppe
Posts: 5537
Threads: 30
Joined: Aug 2017
Reputation:
247
You can do it like this, just create more ifs and put corect plan IDs
Code:
localbus.listen('object', '0/0/1', (value) => {
if (value==0) {
Visu.showPlan(7);
}
else if (value==1) {
Visu.showPlan(17);
}
else {
Visu.showPlan(13);
}
});
------------------------------
Ctrl+F5
Posts: 1817
Threads: 8
Joined: Jul 2015
Reputation:
121
11 hours ago
(This post was last modified: 11 hours ago by Erwin van der Zwart.)
That can be done with an extra virtual object, press ok binary object with event based script and write the slider value to the virtual object that is attached to the grp.listen function.