diff --git a/bricks/floaticonbar.js b/bricks/floaticonbar.js index a1d9c42..fbc0cdb 100644 --- a/bricks/floaticonbar.js +++ b/bricks/floaticonbar.js @@ -27,7 +27,7 @@ bricks.IconBar = class extends bricks.HBox { w.set_style('margin-left', this.opts.margin || '10px'); w.set_style('margin-right', this.opts.margin || '10px'); if (tools[i].name){ - w.widget_id = tools[i].name; + w.set_id(tools[i].name); } w.set_style('cursor', 'pointer'); this.add_widget(w);