I have en entity with icon and style.
class MyEntity (val vaadinIcon: VaadinIcon, val styleCss: String)
In Jmix1 that was
class MyEntity (val jmixIcon: JmixIcon, val styleCss: String)
I have an app that display item with icon and color, on entityComboBox, datagrid, etc…
In each component, the configuration is to set the icon et the style css (that’s include the color)
In the map addon v1, that was the same thing
geometryStyles.point()
.withFontIcon(myEntity.jmixIcon)
.setIconPathFillColor(myEntity.styleCss)
But in the map addon v2, style are
IconStyle()
.withSrc("icons/question.png")
.withColor("#A368D5")
But I don’t know the image src, I just have a VaadinIcon,
and I don’t know the exact color, (it’s in the css theme), I just know the style.
So, in jmix 2, is-it possible to display an icon (VaadinIcon) and a style to display the same icon on the map and on the other components.