Add to list on button click
Hi all , I struggling with finding a proper solution for the following : I have a page that displays multiple listviews similar to the attached screenshot . Each listview is populated via a filtered Supabase query where every list item corresponds to a row . Now I would like to implement CRUD actions but I cannot figure out how I can add to the list on a button click ? Any help or pointers is greatly appreciated . Thank you 🙂 When you add an item to the list , add the values to the variable and simultaneously POST the new row to your database Using a variable will help you display updated values without having to wait for API calls Thank you so much for your help ! I managed to do the first part . So now I have the Supabase query which is saved to a variable and that variable is then used to show the list . I can also click on the plus button and an empty item is added . How do you achieve the POST part though ? The text is displayed in a div with a contenteditable attribute . I have an input event but cannot find the proper way to save it to the variable . Use POST or PATCH depending on whether youre adding a new row or updating an existing one


.jpeg/public)