Interface RowType

Interface representing a row in the grid. It is essentially the blueprint to a row object. Contains definitions of properties and methods, relevant to a row

Implemented by

Properties

addRowUI?: boolean
beginAddRow?: (() => void)

Optional A method to handle adding a new row

Type declaration

    • (): void
    • Returns void

cells?: QueryList<CellType> | CellType[]

Optional A list or an array of cells, that belong to the row

children?: RowType[]

Optional Contains the child rows of the current row, if there are any.

data?: any
delete?: (() => any)

Optional A method to handle deleting rows

Type declaration

    • (): any
    • Returns any

deleted?: boolean

Optional Indicates whether the row is marked for deletion.

disabled?: boolean

Optional Indicates whether the current row is disabled

expanded?: boolean

Optional Indicates whether the current row is expanded. The value is true, if the row is expanded and false, if it is collapsed

focused?: boolean

Optional Indicates whether the row is currently focused.

grid: GridType

Represent the grid instance, the row belongs to

groupRow?: IGroupByRecord
hasChildren?: boolean

Optional Indicates whether the current row has any child rows

inEditMode?: boolean

Optional Indicates whether the row is currently being edited.

index: number

The index of the row within the grid

isGroupByRow?: boolean

Indicates whether the row is grouped.

isSummaryRow?: boolean
key?: any
nativeElement?: HTMLElement

Represents the native HTML element of the row itself

onClick?: ((event: MouseEvent) => void)

Optional A method to handle click event on the row It takes a MouseEvent as an argument

Type declaration

    • (event): void
    • Parameters

      • event: MouseEvent

      Returns void

onRowSelectorClick?: ((event: MouseEvent) => void)

Type declaration

    • (event): void
    • Parameters

      • event: MouseEvent

      Returns void

parent?: RowType

Optional Contains the parent row of the current row, if it has one. If the parent row exist, it means that the current row is a child row

pin?: (() => void)

Optional A method to handle pinning a row

Type declaration

    • (): void
    • Returns void

pinned?: boolean

Optional Indicates whether the current row is pinned.

selected?: boolean

Optional Indicates whether the current row is selected

summaries?: Map<string, IgxSummaryResult[]>

Optional A map of column field names to the summary results for the row.

treeRow?: ITreeGridRecord

Optional Represents the hierarchical record associated with the row (for tree grids). It is of type ITreeGridRecord, which contains the data, children, the hierarchical level, etc.

unpin?: (() => void)

Optional A method to handle unpinning a row, that has been pinned

Type declaration

    • (): void
    • Returns void

update?: ((value: any) => void)

Optional A method to handle changing the value of elements of the row It takes the new value as an argument

Type declaration

    • (value): void
    • Parameters

      • value: any

      Returns void

viewIndex: number

Optional Virtualization state of data record added from cache