|
|
@ -66,8 +66,7 @@ function ItemSet(body, options) { |
|
|
|
vertical: 10 |
|
|
|
}, |
|
|
|
axis: 20 |
|
|
|
}, |
|
|
|
padding: 5 |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
// options is shared by this ItemSet and all its items
|
|
|
@ -243,9 +242,6 @@ ItemSet.prototype._create = function(){ |
|
|
|
* and vertical direction. Default is 10. |
|
|
|
* {Number} margin |
|
|
|
* Set margin for both axis and items in pixels. |
|
|
|
* {Number} padding |
|
|
|
* Padding of the contents of an item in pixels. |
|
|
|
* Must correspond with the items css. Default is 5. |
|
|
|
* {Boolean} selectable |
|
|
|
* If true (default), items can be selected. |
|
|
|
* {Boolean} editable |
|
|
@ -276,7 +272,7 @@ ItemSet.prototype._create = function(){ |
|
|
|
ItemSet.prototype.setOptions = function(options) { |
|
|
|
if (options) { |
|
|
|
// copy all options that we know
|
|
|
|
var fields = ['type', 'align', 'order', 'padding', 'stack', 'selectable', 'groupOrder', 'dataAttributes', 'template','hide', 'snap']; |
|
|
|
var fields = ['type', 'align', 'order', 'stack', 'selectable', 'groupOrder', 'dataAttributes', 'template','hide', 'snap']; |
|
|
|
util.selectiveExtend(fields, this.options, options); |
|
|
|
|
|
|
|
if ('orientation' in options) { |
|
|
|