Class: GridConfig

ngeo.GridConfig

new GridConfig(data, columnDefs)

Parameters:
Name Type Description
data Array.|undefined

Entries/objects to be shown in a grid.

columnDefs Array.|undefined

Column definition of a grid.

Members

columnDefs: Array:.<ngeox.GridColumnDef:>|undefined

data: Array:.<Object:>|undefined

(non-null) selectedRows: Object:.<string:, Object:>

Methods

(static) getRowUid(attributes)

Get an ID for a row.

Parameters:
Name Type Description
attributes Object

An entry/row.

Returns:
string

Unique id for this object.

getSelectedCount()

Returns the number of selected rows.

Returns:
number

Number of selected rows.

getSelectedRows()

Returns the selected rows.

Returns:
Array.

Selected rows in the current ordering.

invertSelection()

Invert selection.

isRowSelected(attributes)

Is the given row selected?

Parameters:
Name Type Description
attributes Object

An entry/row.

Returns:
boolean

True if already selected. False otherwise.

selectAll()

Select all rows.

selectRow(attributes)

Parameters:
Name Type Description
attributes Object

An entry/row.

toggleRow(attributes)

Parameters:
Name Type Description
attributes Object

An entry/row.

unselectAll()

Unselect all rows.