open-ui
open-ui copied to clipboard
[invokers] should we pursue proposing method names to match invoke actions?
One of the original design goals of invokers was to match the names of imperative methods (togglePopover, etc) should we pursue specifying these methods on their respective methods e.g. HTMLDialogElement#toggleModal?
If we consider pursuing this, do we also re-evaluate other action names to align them to existing method names or propose methods to match them:
- Dialog
toggletoggleModal
- Details
openclosetoggle
- Video Elements
playpausetoggleMuted
- Any Elements
toggleFullscreen
There hasn't been any discussion on this issue for a while, so we're marking it as stale. If you choose to kick off the discussion again, we'll remove the 'stale' label.
Specific naming requirements (https://github.com/openui/open-ui/issues/969#issuecomment-2251153158) mean that method names will not match their methods.
I think as we define new actions we can consider specifying equivalent methods on a case-per-case basis.