Possible attrributes:
Required:
-
data="controllerArray"
Data source (array of objects) in your Controller. But if 'fromUrl' is present 'data' atribute will contain controller link to empty array( will be fill up after receiving data ).
-
headers="headerName1,headerName1,headerName3"
Array of table header names
-
fields="Property1, Property2"
Array of displayed properties of object. This option allows you to display only certain fields of the object. Number of fields must be equal number of headers.
Optional:
-
fromUrl="URL"
Load data from external URL.
-
display="N"
Display N records per page.
-
search="true | false | separate"
Display search input. Value "separate" is allows you search by columns.
-
paging="true | false"
Use paging to present data.
-
sorting="simple | compound | false"
Use sorting. 'simple' - by single column (property), 'compound' - by few columns.
-
select="multiply"
Allows to select more than one row. Selected rows are accessible.
-
editable="all"
Allows to edit content inside cells. Edit uptates your angular model.
-
selected-model="model"
It exports selected model to controller variable.
-
resize="true"
Use column resizing.
-
drag-columns="true"
It allows to reorder your columns using drag-n-drop.
Default values:
-
display="5"
-
paging="true"
-
sorting="simple"
-
resize="false"
-
drag-columns="false"