opencaesar / oml-vision

A VS Code extension providing UI viewpoints for OML models
Other
4 stars 2 forks source link

Specify number as a type in property sheet. #43

Closed UTNAK closed 6 months ago

UTNAK commented 6 months ago

Checklist before submitting a feature request

Is your feature request related to a problem? If yes, describe the problem

I would like to specify number as a type in the propertyLayouts.json.

Describe the desired feature

Please allow users to specify number as a type in the propertyLayouts.json

pogi7 commented 6 months ago

I want to match the styling to what's recommended here: https://v2.uiguideline.com/components/number-input

pogi7 commented 6 months ago

It appears that the maintainers of the VSCode webview UI toolkit won't add in a number type to the toolkit.
https://github.com/microsoft/vscode-webview-ui-toolkit/issues/439 I'll need to extend the definition of their TextField to a NumberField https://github.com/microsoft/vscode-webview-ui-toolkit/blob/main/src/text-field/index.ts