I'm trying to implement multipage application with groovyfx and i'm stuck with the scene changing. Suppose i have the following code:
start {
stage(id: 'stageId', title: 'sometitle'){
scene(id:'scene1'){
button(text:'goto scene 2', onAction: {/* i guess i should do something here` */})
}
scene(id:'scene2'){
label(text:'this is scene 2')
}
}
}
what should i put to button's action to be able to go to scene 2?