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
I have a table with a "Cleared" check mark button. I'd like the button to be enabled when the table row action is not cleared, and disabled when it is cleared. When the enabled button is clicked, I need to make an API call and, if the call is successful, I'd like the button to be disabled. I also, want to set a couple of variables indicating that the table row has been cleared and by whom.
Is this possible and what's the best approach? I tried but couldn't figure out the syntax to link to my simple custom event, as below.
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 have a table with a "Cleared" check mark button. I'd like the button to be enabled when the table row action is not cleared, and disabled when it is cleared. When the enabled button is clicked, I need to make an API call and, if the call is successful, I'd like the button to be disabled. I also, want to set a couple of variables indicating that the table row has been cleared and by whom.
Is this possible and what's the best approach? I tried but couldn't figure out the syntax to link to my simple custom event, as below.
In +page.svelte
In table-clear-actions.svelte
Thanks
Gary
Beta Was this translation helpful? Give feedback.
All reactions