frameworks/uki/src/uki-view/view/toolbar.js in uki-1.1.1 vs frameworks/uki/src/uki-view/view/toolbar.js in uki-1.1.2

- old
+ new

@@ -1,10 +1,18 @@ include('button.js'); include('flow.js'); uki.view.toolbar = {}; +/** +* Toolbar +* +* @author voloko +* @name uki.view.Toolbar +* @class +* @extends uki.view.Container +*/ uki.view.declare('uki.view.Toolbar', uki.view.Container, function(Base) { this.typeName = function() { return 'uki.view.Toolbar'; }; this._moreWidth = 30; @@ -13,16 +21,24 @@ Base._setup.call(this); this._buttons = []; this._widths = []; }; + /** + * @function + * @name uki.view.Toolbar#buttons + */ this.buttons = uki.newProp('_buttons', function(b) { this._buttons = b; var buttons = uki.build(uki.map(this._buttons, this._createButton, this)).resizeToContents('width'); this._flow.childViews(buttons); this._totalWidth = uki.reduce(0, this._flow.childViews(), function(s, v) { return s + v.rect().width; }); }); + /** + * @function + * @name uki.view.Toolbar#moreWidth + */ uki.moreWidth = uki.newProp('_moreWidth', function(v) { this._moreWidth = v; this._updateMoreVisible(); }); \ No newline at end of file