update gridstack.js

This commit is contained in:
Pavel Reznikov 2015-03-08 11:59:42 -07:00
commit d26c2d6621
2 changed files with 20 additions and 13 deletions

View file

@ -39,6 +39,7 @@
<div>
<button data-bind="click: add_new_widget">Add new widget</button>
<button data-bind="click: change_cell_height">Change Cell Height</button>
</div>
<br>
@ -103,6 +104,11 @@
this.delete_widget = function (item) {
self.widgets.remove(item);
};
this.change_cell_height = function (item) {
var grid = $('.grid-stack').data('gridstack');
grid.cell_height(50 + 100 * Math.random());
}.bind(this);
};
var widgets = [