Ruckus
11/02/2017, 9:47 PMbutton and hover {
...
}
Marcin Wisniowski
11/02/2017, 9:47 PMRuckus
11/02/2017, 9:49 PMedvin
11/02/2017, 10:10 PMaddClass
, removeClass
and toggleClass
. That throws some people off, they go looking for addPseudoClass
etc. I think using just addClass
etc was the right choice though 🙂Marcin Wisniowski
11/02/2017, 11:00 PMthomasnield
11/03/2017, 12:42 AMcarlw
11/03/2017, 1:25 AMthomasnield
11/03/2017, 3:47 AMnimakro
11/03/2017, 6:39 AMajithprasaad
11/03/2017, 6:49 AMedvin
11/03/2017, 6:57 AMedvin
11/03/2017, 6:58 AMedvin
11/03/2017, 7:30 AMedvin
11/03/2017, 7:30 AMajithprasaad
11/03/2017, 7:41 AMclass DemoTab : View("Demo Tab") {
override val root = hbox()
init {
with(root) {
vbox{
hgrow = Priority.ALWAYS
val buttonRoot = button("Show Demo Popup")
with(buttonRoot){
action {
find(DemoPopup::class, mapOf(DemoPopup::parentContainer to buttonRoot.parent))
.openModal(stageStyle = StageStyle.TRANSPARENT)
}
}
style {
backgroundColor += Color.BLUE
}
}
vbox {
minWidth = 200.0
style {
backgroundColor += Color.RED
alignment = Pos.CENTER_RIGHT
}
}
}
}
}
class DemoPopup : Fragment("Demo Popup") {
val parentContainer: Parent by param()
override fun onDock() {
modalStage!!.x = parentContainer.localToScreen(parentContainer.boundsInParent).minX
modalStage!!.y = parentContainer.localToScreen(parentContainer.boundsInParent).minY
}
override val root = vbox {
setPrefSize(parentContainer.layoutBounds.width, parentContainer.layoutBounds.height)
style {
backgroundColor += Color.YELLOW
}
}
}
ajithprasaad
11/03/2017, 7:41 AMScreenshot from 2017-11-03 13:11:01.png▾
ajithprasaad
11/03/2017, 7:59 AMbuttonRoot.parent
to get the parent view. Is there any alternative so that I can get the reference of parent vbox?edvin
11/03/2017, 9:37 AMparent.parent.parent
as many times you want, or you can do this@vbox
etc.ron
11/03/2017, 9:38 AMthis@vbox
syntax as it makes it more clear what I am targettingron
11/03/2017, 10:16 AMBy default validation will happen when the input value changes. The input value is always an ObservableValue<T>, and the default trigger simply listens for changes
ron
11/03/2017, 10:17 AMron
11/03/2017, 10:17 AMcarlw
11/03/2017, 1:17 PMedvin
11/03/2017, 1:19 PMtextProperty
of the input control changes. If you add a filter that only accepts numbers for example, the text value would not change when you press character.edvin
11/03/2017, 3:56 PMamanda.hinchman-dominguez
11/03/2017, 5:33 PMamanda.hinchman-dominguez
11/03/2017, 5:34 PMScreen Shot 2017-11-03 at 1.33.47 PM.png▾
amanda.hinchman-dominguez
11/03/2017, 5:35 PMedvin
11/03/2017, 6:53 PM