I got this warning when using ReactGridLayout
The error is self-explanatory: you are using the property "x" in the items as if it were a string, but it expects a number:
x: "13" // incorrect
x: 13 // correct
If you are getting the value from a html control, you have to parse it:
x: parseInt(value)
If you are setting it as an attribute, set it as an integer, not a string:
x="13" // incorrect
x={13} // correct
@Puffton thank you
@Puffton Thx .
if i want size % .
am use {"90%"} is not work.
@Puffton Thx .
if i want size % .
am use {"90%"} is not work.
If you want to use percentage, you have to make it a string
eg. size="90%"
This approach should work
Most helpful comment
The error is self-explanatory: you are using the property "x" in the items as if it were a string, but it expects a number:
If you are getting the value from a html control, you have to parse it:
If you are setting it as an attribute, set it as an integer, not a string: