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:

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
{{item.col1}} {{item.col2}} {{item.col3}}