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
({ headerRows, rows, tableAttrs, tableBodyAttrs, pluginStates } = table.createViewModel(columns)); //After getting the data source and setting up access, we can get the 'view model' $filterValue = pluginStates.tableFilter;
I changed const { filterValue } = pluginStates.tableFilter; to $filterValue = pluginStates.tableFilter; since I am importing this value from a search bar at a different Svelte component.
However, I am getting the error: No value exists in scope for the shorthand property 'pluginStates'. Either declare one or provide an initializer.js(18004)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to implement the Table Filter plugin.
({ headerRows, rows, tableAttrs, tableBodyAttrs, pluginStates } = table.createViewModel(columns)); //After getting the data source and setting up access, we can get the 'view model' $filterValue = pluginStates.tableFilter;
I changed const
{ filterValue } = pluginStates.tableFilter;
to$filterValue = pluginStates.tableFilter;
since I am importing this value from a search bar at a different Svelte component.However, I am getting the error:
No value exists in scope for the shorthand property 'pluginStates'. Either declare one or provide an initializer.js(18004)
Beta Was this translation helpful? Give feedback.
All reactions