https://kotlinlang.org logo
#tornadofx
Title
# tornadofx
a

anujkrvaish

08/25/2017, 10:16 AM
Copy code
class MainView : View("TornadoFX") {
    override val root = drawer {
        style { backgroundColor = multi(Color.DIMGRAY) }
        item("",imageview(resources.image("../app/menu.png")), expanded = true) {
            vbox {
                label("First Menu")
            }
        }
        item("",imageview(resources.image("../app/bubblechart.png")), expanded = false) {
            vbox {
                label("Second Menu")
            }
        }
        item("",imageview(resources.image("../app/setting.png")), expanded = false) {
            vbox {
                label("Third Menu")
            }
        }
    }

}