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 noticed this cb in the controllers, does it mean there is a way to pass a callback into the controllers?
My use case is, I would like to have a toggle switch to change some setting on the server, but I don't want to be hardcoding the XHR/AJAX inside the controller itself.
Any examples of how I can do this callback from controller back to the HTML side?
Thank you.
UPDATE: ok, I misunderstood the code
The text was updated successfully, but these errors were encountered:
tailwindcss-stimulus-components/src/dropdown.js
Lines 99 to 112 in 11f7338
I noticed this
cb
in the controllers, does it mean there is a way to pass a callback into the controllers?My use case is, I would like to have a toggle switch to change some setting on the server, but I don't want to be hardcoding the XHR/AJAX inside the controller itself.
Any examples of how I can do this callback from controller back to the HTML side?
Thank you.
UPDATE: ok, I misunderstood the code
The text was updated successfully, but these errors were encountered: