Replies: 1 comment
-
I suspect you'd need to roll your own. It's all just Javascript/HTML. The SDPI components are partly convenience & partly for consistent look/feel. I wanted a toggle for something so had to roll my own (looks nicer than radios). The code below creates a hidden radio button group to do all the settings loading/saving for me and then a little bit of JS to handle value changes and update accordingly. (the
Took me a little while to figure out how to set the value back on the element, I tried all sort of Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
I'm developing my own plugin and have buttons that have custom logic and I'm wanting to include a hotkey option in the button configuration. The native hotkey functionality in the default Hotkey button is exactly what I'd like to implement but I don't see it as an SDPI component option like lists, radio buttons, etc. Is there a way to implement that native hotkey function in a custom plugin? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions