bugfix
This commit is contained in:
parent
0a7c9fca0f
commit
b388166887
@ -8,6 +8,20 @@ bricks.Layout = class extends bricks.JsWidget {
|
||||
this._container = true;
|
||||
this.children = [];
|
||||
}
|
||||
build_title(){
|
||||
if (this.title){
|
||||
this.title_w = new bricks.Title3({otext:this.title, i18n:true, dynsize:true});
|
||||
this.add_widget(this.title_w);
|
||||
}
|
||||
}
|
||||
build_description(){
|
||||
if (this.description){
|
||||
this.description_w = new bricks.Text({otext:this.description,
|
||||
i18n:true, dynsize:true
|
||||
});
|
||||
this.add_widget(this.description_w);
|
||||
}
|
||||
}
|
||||
set_key_select_items(){
|
||||
this.key_select_items = this.children;
|
||||
}
|
||||
|
@ -11,6 +11,8 @@ bricks.Menu = class extends bricks.VBox {
|
||||
super(options);
|
||||
this.dom_element.style.display = "";
|
||||
this.dom_element.style.backgroundColor = options.bgcolor || "white";
|
||||
this.build_title();
|
||||
this.build_description();
|
||||
this.create_children(this, this.opts.items);
|
||||
this.bind('item_click', this.menu_clicked.bind(this));
|
||||
}
|
||||
|
@ -170,6 +170,8 @@ bricks.Tree = class extends bricks.VScrollPanel {
|
||||
this.row_height = this.opts.row_height || '35px';
|
||||
this.multitype_tree = this.opts.multitype_tree||false;
|
||||
this.selected_node = null;
|
||||
this.build_title();
|
||||
this.build_description();
|
||||
this.create_toolbar();
|
||||
this.checked_data = [];
|
||||
this.container = new bricks.VBox({
|
||||
|
Loading…
Reference in New Issue
Block a user