carlw
02/12/2017, 6:28 PMnimakro
03/08/2017, 3:28 PMaddPseudoClass
methode with a String
instead of addPseudoClass(ApplicationStyle.somePseudoClass)
which works for normal css classes addClass(ApplicationStyle.someStyle)
?
Second question I defined a pseudoClass in my ApplicationStyle
class and add the pseudoclass with addPseudoClass
to a treecell
which should change the background color but nothing happends, this is the code (I shortened it):
// In the init methode do addClass(view)
cellFormat {
when (it) {
is SomeClass -> {
addPseudoClass("hasItem")
text = it.toString()
}
else -> {
removePseudoClass("hasItem")
text = it.toString()
}
}
}
And that's the css
view {
treeCell {
backgroundInsets += box(1.5.px, 0.px, 1.5.px, 0.px)
fontSize = 12.px
}
and(hasItem) {
backgroundColor += c("#F7F7F7")
}
}
nimakro
03/08/2017, 4:29 PMaddPseudoClass("has-item")
I guess the default behaviour is to separate hasItem
with has-item
edvin
03/14/2017, 6:36 PMasyncItems
? We could discuss and try different approaches if needed.Ruckus
03/14/2017, 6:49 PMedvin
03/15/2017, 6:10 PMcarlw
03/16/2017, 2:16 AMedvin
03/16/2017, 3:38 PMborboss
03/20/2017, 12:47 PMron
03/20/2017, 9:26 PMedvin
03/22/2017, 7:04 AMcarlw
03/25/2017, 12:03 PMcarlw
03/29/2017, 4:54 PMcarlw
03/29/2017, 6:43 PMcarlw
03/29/2017, 6:46 PMedvin
03/29/2017, 6:56 PMedvin
04/03/2017, 8:04 PMedvin
04/04/2017, 4:32 PMloloof64
04/06/2017, 1:30 PMkevinmost
04/08/2017, 10:29 AMedvin
04/12/2017, 4:01 PMedvin
04/18/2017, 8:42 PMRuckus
04/20/2017, 2:29 PMedvin
04/20/2017, 3:24 PMedvin
04/24/2017, 6:27 PMhttps://www.youtube.com/watch?v=aSv5rwHxmrA▾
mikehearn
04/25/2017, 2:23 PMedvin
04/25/2017, 9:02 PMcarlw
04/28/2017, 2:43 PMedvin
05/01/2017, 9:05 PMedvin
05/13/2017, 1:49 PMedvin
05/13/2017, 1:49 PMnimakro
05/13/2017, 4:09 PMListCellFragement
since I can use the builders there, if I want to use a function it would have to be in the View
class or any other Component
to be able to use the builders?edvin
05/14/2017, 3:57 PMEventTarget
.