Log in
Log into community
Join the Webstudio community
View all posts
Related posts
Was this helpful?
π
π
π
Powered by
Hall
Active
Updated 4 weeks ago
0
Follow
Collection index
Collection index
Active
0
Follow
Z
Zmove
3 months ago
Β·
Let's suppose that collection :
[
"What age groups do you cater to?",
"What are the school hours?",
"Is there a summer program?"
]
In my item, can I get (0, 1, 2) corresponding on the key of my 3 sentences ?
B
Z
12 comments
Share
Open in Discord
B
Bogdan
3 months ago
Hey, what do you need it for?
Z
Zmove
3 months ago
That collection is in a radix accordion, and by reading the doc, I need to define an unique value to items in order to make the accordion to work. Got the idea to have that kind of pattern "accordion-item + key" as a value for each items
B
Bogdan
3 months ago
You can use the text, could be any unique value
Z
Zmove
3 months ago
ah, the value don't need to be of type code or slugified ? Can put a full sentence here ?
B
Bogdan
3 months ago
Yep
Z
Zmove
3 months ago
ah yes you right, it works
Z
Zmove
3 months ago
the doc is a little short about how it works, I'm not sure to understand how it works behind the scene, but it works quite "magically" ^^
Z
Zmove
3 months ago
thank you
Z
Zmove
3 months ago
Another question if you are still here : here is my accordion, how can I change the position of the arrow for the opened item ?
Attachment
Z
Zmove
3 months ago
is there a "state" for the opened item when I can change css of children elements like I can do with "hover" or "active" etc.. ?
B
Bogdan
3 months ago
No way yet, wait til announcement in coming weeks π
Z
Zmove
3 months ago
ok, nice, thank you !
Add a reply
Sign up and join the conversation on Discord
Join on Discord