Here we have a demo on grid layout manipulations. The layout can be updated out of the components core, saved and applied. To apply some layout you may call applyLayout method on gridAdapter:
$scope.adapter.gridAdapter.applyLayout(layout)The "layout" variable must have an appropriate format which exactly matches the format of getLayout() method call result.
layout = $scope.adapter.gridAdapter.getLayout()Note that saving via cookie requires web-server.
number | content | bool |
---|---|---|
1 | item #1 | false |
2 | item #2 | false |
3 | item #3 | true |
4 | item #4 | false |
5 | item #5 | false |
6 | item #6 | true |
7 | item #7 | true |
8 | item #8 | false |
9 | item #9 | true |
10 | item #10 | false |