The tbGrid
directive is the base to create any grid. This is the root node where you should start
designing your grid. Don't need to add a controller
.
Param | Type | Details |
---|---|---|
gridSource | array |
Set the local data source. |
serverUrl | string |
Set the HTTP URL where the data comes. |
serverSaveUrl | string |
Set the HTTP URL where the data will be saved. |
serverDeleteUrl | string |
Set the HTTP URL where the data will be saved. |
serverSaveMethod | string |
Set HTTP Method to save data. |
pageSize | int |
Define how many records to show in a page, default 20. |
onBeforeGetData | function |
Callback to execute before to get data from service. |
requestMethod | string |
Set HTTP Method to get data. |
requireAuthentication | bool |
Set if authentication check must be executed, default true. |
gridName | string |
Grid's name, used to store metainfo in localstorage. |
editorMode | string |
Define if grid is read-only or it has editors (inline or popup). |
showLoading | bool |
Set if an overlay will show when it's loading data, default true. |
autoRefresh | bool |
Set if the grid refresh after any insertion or update, default true. |
savePage | bool |
Set if the grid autosave current page, default true. |
savePageSize | bool |
Set if the grid autosave page size, default true. |
saveSearchText | bool |
Set if the grid autosave search text, default true. |
localPaging | bool |
Set if the paging occurs in client side, default false. |