browse other examples

Grid layout manipulations

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.

1 column bg-color
2 column bg-color
3 column bg-color

number content bool
1item #1false
2item #2false
3item #3true
4item #4false
5item #5false
6item #6true
7item #7true
8item #8false
9item #9true
10item #10false