I know how to do it with buttons, but can’t find out how to do it with selection-tags.
$w('#myButton1, #myButton2, #myButton2').onClick......
$w('Button').onClick.....
$w('#selectionTags1, #selectionTags2, #selectionTags3').onChange....
$w('?????').onChange....?
$w('Selectiontag').onChange..... ---> seems not to work
$w('Selectiontags').onChange..... ---> seems not to work
$w('SelectionTags').onChange..... ---> seems not to work
$w('SelectionTag').onChange..... ---> seems not to work
$w('selectionTags').onChange..... ---> seems not to work
$w('selectionTag').onChange..... ---> seems not to work
$w('STags').onChange..... ---> seems not to work
$w('STag').onChange..... ---> seems not to work
$w('Tags').onChange..... ---> seems not to work
$w('Tag').onChange..... ---> seems not to work
How to do it the right way ?
My idea:
-
Get all element on the page $w('#page).children
-
Filter the element type https://www.wix.com/velo/reference/$w/selectiontags/type
So you will get an array of selection tags element
Ok, thanks man! I understand, but i hoped there is the same way like with (for example) BUTTONS —> $w ( ‘Button’ ). onClick.
@Wix-Team
If this command-option is not available yet, perhaps this should be added, so that a workaround wouln’t be a must.
Just like —> BUTTONS —> $w ( ‘Selectiotags’ ). onClick… and it’S done.
Anyway, my thanks goes to you CCVC
@russian-dima I hope so… Filtering manually takes more step… and Velo is claimed as ‘Fast’… so… it should be more simplified!
@certified-code
I also ask myself why these command-features are given for (for example):
a) buttons
b) checkbox-groups
…but NOT for —> SELECTION-TAGS ? WHY ???
Checkbox-Groups have almost the same functionality like Selection-Tags.