【发布时间】:2016-06-06 14:27:22
【问题描述】:
我想将 angular gridster(每个项目的位置、大小和顺序)保存在本地存储中,然后在数据库中保存,并在页面加载时检索存储的位置。 我找到了 gridster https://github.com/ducksboard/gridster.js/issues/111 的东西,但没有找到 angular gridster。 请问可以帮帮我吗?谢谢
vm.gridsterOptions = {
columns: 4,
mobileModeEnabled: true,
draggable: {
enabled: true, // whether dragging items is supported
handle: '.H', // optional selector for drag handle
stop: function(event, $element, widget) {
}
},
resizable: {
enabled: true,
stop: function (e, ui, $widget) {
},
handles: ['n', 'e', 's', 'w', 'ne', 'se', 'sw', 'nw'],
},
};
这是我的 HTML
<div gridster="test.gridsterOptions" class="gridster-ready">
<li class="my-class" gridster-item ng-repeat="datas in test.chartDataArray " >
<highchart id="container" style="width:100%;height:88%;margin: 0 auto" config="datas" ></highchart>
</li>
</div>
【问题讨论】:
标签: javascript angularjs gridster