Hello,
i try to set the style for a BNanoElement with SetStyle() but the code taken from the documentation doesn't work for me:
And it is not possible to initialize the JSONGenerator with a Map because BNano doesn't support it.
Thanks in advance & Greetings ... Peter (B4J: 6.80 B1 / Json: 1.10 / BNano: 1.03)
i try to set the style for a BNanoElement with SetStyle() but the code taken from the documentation doesn't work for me:
- SetStyle (json As java.lang.Object) As void
Sets the style of the target BANanoElement.
example:
<code>
dim json as JSONGenerator
json.initialize("{ background: 'green', display: 'none', 'border-radius': '5px' }")
BANano.Get("#someid").SetStyle(json)
</code>
src\b4j\example\main.java:100: error: incompatible types: String cannot be converted to MyMap
And it is not possible to initialize the JSONGenerator with a Map because BNano doesn't support it.
Thanks in advance & Greetings ... Peter (B4J: 6.80 B1 / Json: 1.10 / BNano: 1.03)