kotlin-wrappers
kotlin-wrappers copied to clipboard
CSSOM. Unable to set `gridRow` and `gridColumn` properties
Hello,
I'm trying to make the same as in the example of grid-row from MDN, but I can't do it without unsafeCast
, because there are no GridRow
/GridColumn
factories (even no something like array
/many
factories but with "/" as a separator).
gridRow = "1 / 3".unsafeCast<GridRow>()
gridRow = "auto / span 2".unsafeCast<GridRow>()
gridColumn = "auto / span 2".unsafeCast<GridColumn>()
Is there any way to do it without casting?