It allows you to define the type, property string,...
# tornadofx
r
It allows you to define the type, property string, and even add a custom renderer, but the usage is slightly different. For example, this style definition
Copy code
class Styles {
    companion object {
        val myText by cssproperty<String>("-text-value") { it.toUpperCase() }
    }

    init {
        label {
            myText.value = "Test"  // Notice the use of `.value`
        }
    }
}
results in
Copy code
.label {
    -text-value: TEST;
}