This commit is contained in:
yumoqing 2024-02-21 11:39:31 +08:00
parent cb58e8998e
commit 7df6ee32e2

View File

@ -122,10 +122,15 @@ bricks.Form = class extends bricks.VBox {
constructor(opts){
super(opts);
this.body = new bricks.FormBody(opts);
this.body.bind('submited', this.redispatch_submited.bind(this));
this.add_widget(this.body);
if (! opts.notoolbar)
this.build_toolbar(this);
}
redispatch_submited(args, event){
console.log('redispatch_submited():args=',args, 'event=', event);
self.dispatch('submited', args);
}
build_toolbar(widget){
var box = new bricks.HBox({height:'auto', width:'100%'});
widget.add_widget(box);