sample fix
This commit is contained in:
24
samples/01-base/src/ViewExample.hx
Executable file
24
samples/01-base/src/ViewExample.hx
Executable file
@@ -0,0 +1,24 @@
|
||||
package;
|
||||
|
||||
import haxework.gui.ViewBuilder;
|
||||
import haxework.gui.VGroupView;
|
||||
import haxework.gui.ButtonView;
|
||||
import haxework.gui.Root;
|
||||
|
||||
@:template("form.json")
|
||||
class FormView extends VGroupView implements ViewBuilder {}
|
||||
|
||||
class ViewExample {
|
||||
|
||||
public static function main() {
|
||||
new ViewExample();
|
||||
}
|
||||
|
||||
public function new() {
|
||||
new Root(new FormView({listener:this}));
|
||||
}
|
||||
|
||||
public function onPress(view:ButtonView):Void {
|
||||
trace("onPress: " + view.id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user