[**@rxap/table-system v19.0.4**](../README.md)

***

[@rxap/table-system](../globals.md) / AllRowsSelectedDirective

# Class: AllRowsSelectedDirective\<Data\>

Defined in: [select-row/all-rows-selected.directive.ts:27](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/table-system/src/lib/select-row/all-rows-selected.directive.ts#L27)

## Type Parameters

• **Data** *extends* `Record`\<`string`, `any`\>

## Implements

- `OnInit`
- `OnDestroy`

## Constructors

### new AllRowsSelectedDirective()

> **new AllRowsSelectedDirective**\<`Data`\>(`template`, `viewContainerRef`, `cdr`, `selectRowService`, `cdkTable`): [`AllRowsSelectedDirective`](AllRowsSelectedDirective.md)\<`Data`\>

Defined in: [select-row/all-rows-selected.directive.ts:31](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/table-system/src/lib/select-row/all-rows-selected.directive.ts#L31)

#### Parameters

##### template

`TemplateRef`\<[`AllRowsSelectedDirectiveContext`](../interfaces/AllRowsSelectedDirectiveContext.md)\<`Data`\>\>

##### viewContainerRef

`ViewContainerRef`

##### cdr

`ChangeDetectorRef`

##### selectRowService

[`SelectRowService`](SelectRowService.md)\<`Data`\>

##### cdkTable

`CdkTable`\<`Data`\>

#### Returns

[`AllRowsSelectedDirective`](AllRowsSelectedDirective.md)\<`Data`\>

## Methods

### ngOnDestroy()

> **ngOnDestroy**(): `void`

Defined in: [select-row/all-rows-selected.directive.ts:45](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/table-system/src/lib/select-row/all-rows-selected.directive.ts#L45)

A callback method that performs custom clean-up, invoked immediately
before a directive, pipe, or service instance is destroyed.

#### Returns

`void`

#### Implementation of

`OnDestroy.ngOnDestroy`

***

### ngOnInit()

> **ngOnInit**(): `void`

Defined in: [select-row/all-rows-selected.directive.ts:49](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/table-system/src/lib/select-row/all-rows-selected.directive.ts#L49)

A callback method that is invoked immediately after the
default change detector has checked the directive's
data-bound properties for the first time,
and before any of the view or content children have been checked.
It is invoked only once when the directive is instantiated.

#### Returns

`void`

#### Implementation of

`OnInit.ngOnInit`
