-
Notifications
You must be signed in to change notification settings - Fork 31
2.0 Migration Guide
Ben Dol edited this page Sep 1, 2017
·
6 revisions
You can now setup your table before it has been attached to the DOM. Methods such as addColumn
, setRowData
, etc can now be called before the table is attached. Almost all previous methods that relied on attachment to the DOM have now been improved to allow for easier and more reliable construction.
Before | After |
---|---|
table.refreshView() |
table.getView().refresh() |
table.setLoadMask(boolean) |
table.getView().setLoadMask(boolean) |
table.getViewId() |
table.getView().getId() |
table.render(components) |
table.getView().render(components) |
table.destroy() |
table.getView().destroy() |
table.refresh() |
table.getView().refresh() |
table.isHeaderVisible(int) |
table.getView().isHeaderVisible(int) |
table.getHeaders() |
table.getView().getHeaders() |
table.isSetup() |
table.getView().isSetup() |
table.getVisibleItemCount() |
table.getView().getVisibleItemCount() |
table.getSortContext() |
table.getView().getSortContext() |
table.isRedraw() |
table.getView().isRedraw() |
table.setRedraw(boolean) |
table.getView().setRedraw(boolean) |
table.setLoadMask(boolean) |
table.getView().setLoadMask(boolean) |
table.isLoadMask() |
table.getView().isLoadMask() |
table.getProgressWidget() |
table.getView().getProgressWidget() |
table.getIndexOffset() |
table.getLoaderBuffer() |
table.setIndexOffset(int) |
table.setLoaderBuffer(int) |
- SetupEvent - called when the tables
DataView
is setup. - DestroyEvent - called when the tables
DataView
is destroyed (destroy()). - InsertColumnEvent - called when the tables
DataView
adds or inserts a new column. - RemoveColumnEvent - called when the tables
DataView
removes an existing column.