alexp11223
05/21/2017, 6:56 AM.paragraph-box:has-caret { -fx-background-color: #f2f9fc; }
I tried like this but it doesn't seem to work
companion object {
private val paragraphBox by cssclass("paragraph-box")
}
init {
paragraphBox {
and("has-caret") {
backgroundColor = multi(c("#f2f9fc"))
}
}
alexp11223
05/21/2017, 6:59 AMand(":has-caret")
worksalexp11223
05/21/2017, 7:01 AMval hasCaret by csspseudoclass("has-caret")
edvin
05/21/2017, 9:00 AMedvin
05/21/2017, 9:01 AMcsspseudoclass
is what you want for sure 🙂edvin
05/21/2017, 9:19 AMobject
keyword to create an anonymous inner class, like this guy did. I can totally understand why he would think that: http://stackoverflow.com/questions/44093159/how-to-implement-tornadofx-webengine-callback-in-kotlin/edvin
05/21/2017, 9:20 AMcarlw
05/21/2017, 10:43 AMalexp11223
05/21/2017, 3:29 PMcontent
as constructor argument.
val codeArea = CodeArea()
val scrollPane = VirtualizedScrollPane(codeArea)
So I cannot create a nice extension function similar to scrollpane
. 😞
Is there any convenient workaround for this? Maybe someone already encountered something similar?gtnarg
05/21/2017, 3:38 PMalexp11223
05/21/2017, 3:41 PMop
function as last parameter and so on. Which is used in
scrollpane {
imageview("tornado.jpg")
}
edvin
05/21/2017, 3:53 PMVirtualizedScrollPane
?gtnarg
05/21/2017, 3:54 PMalexp11223
05/21/2017, 3:54 PMprivate final V content;
nimakro
05/21/2017, 5:13 PMedvin
05/21/2017, 5:26 PMnimakro
05/21/2017, 5:27 PMedvin
05/21/2017, 5:27 PMedvin
05/21/2017, 5:28 PMuser
05/21/2017, 5:33 PMhttps://kotlinlang.slack.com/files/U41021CCB/F5FFPCQKB/pasted_image_at_2017_05_21_07_11_pm.png▾
nimakro
05/21/2017, 5:35 PMkastork
05/21/2017, 5:37 PMItemViewModel
. In that view I want to control the enabled state of things based on whether some directories/files have been created on disk. Is this a reasonable way to surface those conditions for the view?edvin
05/21/2017, 5:53 PMedvin
05/21/2017, 5:54 PMkastork
05/21/2017, 5:57 PMConfiguration
object.edvin
05/21/2017, 5:58 PMkastork
05/21/2017, 5:58 PMedvin
05/21/2017, 6:00 PMbuildable
and ready
could also be booleanBindings, if you need to bind the result to anything.edvin
05/21/2017, 6:00 PMkastork
05/21/2017, 6:01 PM