You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the row component can only access row, which means no information about the outside world — for example, we can't highlight some text that's being used to filter rows, because we can't pass down the filter text.
Maybe something like this:
<VirtualListitems={{...}}component={{...}}props='{{ { foo, bar } }}' />
The props= is a little unfortunate, especially since it means having a clusterfuck of curly braces. This is one place where the React model wins, because you can do this:
In Svelte there isn't a great way to accomplish that. Even the {{...this}} proposal (sveltejs/svelte#1303) doesn't really help, though I suppose it'd be possible to do this:
Currently, the row component can only access
row
, which means no information about the outside world — for example, we can't highlight some text that's being used to filter rows, because we can't pass down the filter text.Maybe something like this:
Then, it would be passed to the row like so:
The
props=
is a little unfortunate, especially since it means having a clusterfuck of curly braces. This is one place where the React model wins, because you can do this:In Svelte there isn't a great way to accomplish that. Even the
{{...this}}
proposal (sveltejs/svelte#1303) doesn't really help, though I suppose it'd be possible to do this:The text was updated successfully, but these errors were encountered: