#Using refs in list rendering

4 messages · Page 1 of 1 (latest)

long fjord
#

Is there any way to use refs in list rendering? In a <For> or <Index>, I'd like to have an array of refs, or generally a way to retrieve ref to an element in the list by index. I can't find any mention of it in the docs, and given that ref takes a variable or signal, I don't see how to assign a specific array key rather than a hardcoded variable.

hazy zealot
#

Slap the ref on the parent and use good old DOM properties like children