vizhub-core / vzcode

Mob Programming Code Editor
MIT License
65 stars 13 forks source link

Interactive Widgets: Checkbox #545

Open curran opened 7 months ago

curran commented 7 months ago

As a user of VZCode, I want to be able to interactively toggle boolean values from true to false and back.

Example:

const enableRotation = true;

There should be a check box next to true that I can check and un-check.

curran commented 7 months ago

image

Here's a nice reference implementation:

https://codemirror.net/examples/decoration/

Note: The alt+click interaction already works with boolean values if you click on them. Adding the checkbox would serve to increase discoverability.