trestle icon indicating copy to clipboard operation
trestle copied to clipboard

Feature Request: Toggle helper like `admin_toggle_to` which creates / destroys an record

Open jfrux opened this issue 7 years ago • 1 comments

I know the name for it sucks, but something similar to that...

I'm finding I could use this a lot in table columns... Or even a built in toggle column type or something.

I'm guessing we would build this into the actions helper of the table hmm... or is there already something that does something similar?

jfrux avatar Aug 30 '18 15:08 jfrux

I'm presuming you mean some sort of toggle switch like this:

on-off-toggle-switches-switcher

If so, I'd definitely like to include something like this in Trestle core.

Thinking about what it could potentially be, at its core it would be a styled checkbox that submits an AJAX request (update action but could be customized) when it is changed. As far as I am aware, the styling can be done through pure CSS with JS just handling the change event and AJAX submission. We'd probably want a built in loading indicator too.

spohlenz avatar Aug 31 '18 01:08 spohlenz