top of page

Forum Posts

Kenneth Phoe
Jan 02, 2023
In Coding with Velo
Hi, i currently have a dataset which is filtered using selection tags, when the value of the selected tag changes my listrepeater content changes as well. However, im wondering whether its possible to add animations to this filtering process since right now it just looks like the content is buggy and just disappears import wixData from 'wix-data'; $w.onReady(function () { $w('#selectionTags1').onChange(() => { let selectedTag = $w('#selectionTags1').value; for (var i = 0; i < selectedTag.length - 1; i++) { if (selectedTag.length > 1) { selectedTag.shift(); } } setTimeout(() => { $w('#selectionTags1').value = []; $w('#selectionTags1').value = selectedTag; }, 1) let filter = wixData.filter(); if (selectedTag.length > 0) { filter = filter.hasSome("arraystring", selectedTag); } $w('#dynamicDataset').setFilter(filter); }); });
0
0
4
Kenneth Phoe
Nov 04, 2022
In Coding with Velo
Hi, i was wondering whether its possible to code such that one of the tags in my selection tag is already chosen when my page loads. Currently, I have 3 tags where only 1 can be chosen any single time but I don't want all of my gallery to be shown when a user enters the page.
0
5
155

Kenneth Phoe

More actions
bottom of page