edvin
09/15/2017, 9:31 AMSVGPath(resources.text())
might work, havent tried though. We could add a constructor to SVGPath that accepts a source path as well. Let me know if it works, I can add it.aayush
09/15/2017, 10:03 AMSVGPath(resources.text("M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"))
edvin
09/15/2017, 10:17 AMSVGPath("M3...
aayush
09/15/2017, 10:32 AMitem(icon = SVGPath("M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"), expanded = true) {
add(PlaceHolderView::class)
}
This is giving me error: Too many arguments for public constructor SVGPath()aayush
09/15/2017, 12:13 PMedvin
09/15/2017, 12:14 PMSVGPath().apply { content = "M3" }
aayush
09/15/2017, 12:19 PMaayush
09/15/2017, 12:19 PMedvin
09/15/2017, 12:20 PMedvin
09/15/2017, 12:20 PMaayush
09/15/2017, 12:23 PMval menuIcon= SVGPath().apply { content = "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" }
override val root = drawer {
item(icon = menuIcon, expanded = true) {
add(PlaceHolderView::class)
}
edvin
09/15/2017, 12:23 PMaddClass
? 🙂edvin
09/15/2017, 12:23 PMSVGPath().apply { content = "M3"; addClass() }
aayush
09/15/2017, 12:23 PM