I've defined a text
view of type: 'number'
(which is undocumented but does generate the correct HTML).
However, https://snippet.webix.com/xosycona shows that .getValue()
returns a string, not a number. This becomes annoying with GraphQL, which checks for strict types. I know I can convert to Number(), but Webix should return the correct type if it supports type: 'number'
text fields well.
Comments
you can implement a little hack
https://snippet.webix.com/51g7c0cm
Nice hack, but shouldn't Webix return a number of
number
text inputs, to begin with?Maybe the webix team relied on HTML:
https://snippet.webix.com/brsetrao
The setting just defines a type for the inner HTML input. It is not supposed to influence output values.
At the same time, formatted numeric inputs can output numbers: https://snippet.webix.com/sy7ktsek
Thank you. Would be helpful to document the format string.