edvin
05/04/2017, 2:19 PMron
05/04/2017, 2:20 PMitem()
you can still customize like
item(title) {
customize()
}.action { action}
ron
05/04/2017, 2:20 PMedvin
05/04/2017, 2:24 PMkastork
05/04/2017, 2:24 PMedvin
05/04/2017, 2:26 PMedvin
05/04/2017, 2:26 PMkastork
05/04/2017, 2:33 PMkastork
05/04/2017, 2:33 PMform {
fieldset("Toolbox Global Setup") {
field("Downloaded Archives Directory") {
textfield(preferencesModel.archivesLocation) {
setOnAction { println("Foo") }
}
button("...") {
setOnAction {
preferencesModel.archivesLocation.value = chooseDirectory(
"Downloaded Archives Directory",
File("/"))!!.absolutePath
}
}
}
kastork
05/04/2017, 2:34 PMedvin
05/04/2017, 2:37 PMaction
instead of setOnAction
. If it ignores your first call it must be due to something else.edvin
05/04/2017, 2:38 PMmenuitem
to item
will be easy, since the refactoring can be done on the whole project in one go 🙂edvin
05/04/2017, 2:44 PMmenuitem
builders in favor of item
builders, which work the same way as other builders with respect to action (IDEA provides quick fix)edvin
05/04/2017, 2:45 PMmenuitem
builders to item
builders flawlessly? It should be a single action, and it can update the whole project.edvin
05/04/2017, 2:45 PMkastork
05/04/2017, 2:50 PMedvin
05/04/2017, 2:51 PMkastork
05/04/2017, 2:51 PMkastork
05/04/2017, 2:52 PMedvin
05/04/2017, 2:52 PMedvin
05/04/2017, 2:53 PMkastork
05/04/2017, 2:53 PMedvin
05/04/2017, 2:56 PMedvin
05/04/2017, 2:56 PMedvin
05/04/2017, 3:00 PMkastork
05/04/2017, 3:24 PMkastork
05/04/2017, 3:25 PMRuckus
05/04/2017, 3:31 PMkastork
05/04/2017, 3:32 PM