[**@rxap/form-system v19.1.0**](../README.md)

***

[@rxap/form-system](../globals.md) / ControlHideShowDirective

# Class: ControlHideShowDirective

Defined in: [packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts:69](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts#L69)

## Extends

- [`ExtractControlFromParentMixin`](ExtractControlFromParentMixin.md).[`ExtractFormDefinitionMixin`](ExtractFormDefinitionMixin.md)

## Implements

- `OnInit`
- `OnDestroy`

## Constructors

### new ControlHideShowDirective()

> **new ControlHideShowDirective**(`renderer`, `elementRef`, `parent`, `ngControl`): [`ControlHideShowDirective`](ControlHideShowDirective.md)

Defined in: [packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts:87](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts#L87)

#### Parameters

##### renderer

`Renderer2`

##### elementRef

`ElementRef`

##### parent

`null` | `ControlContainer`

##### ngControl

`null` | `NgControl`

#### Returns

[`ControlHideShowDirective`](ControlHideShowDirective.md)

#### Inherited from

[`ExtractFormDefinitionMixin`](ExtractFormDefinitionMixin.md).[`constructor`](ExtractFormDefinitionMixin.md#constructors)

## Properties

### control

> **control**: `RxapFormControl`

Defined in: [packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts:83](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts#L83)

***

### controlId?

> `optional` **controlId**: `string`

Defined in: [packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts:81](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts#L81)

## Methods

### extractControlFromParent()

> `protected` **extractControlFromParent**(`parent`, `controlPath`): `AbstractControl`

Defined in: [packages/angular/form-system/src/lib/mixins/extract-control-from-parent.mixin.ts:12](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/form-system/src/lib/mixins/extract-control-from-parent.mixin.ts#L12)

#### Parameters

##### parent

`ControlContainer`

##### controlPath

`string`

#### Returns

`AbstractControl`

#### Inherited from

[`ExtractControlFromParentMixin`](ExtractControlFromParentMixin.md).[`extractControlFromParent`](ExtractControlFromParentMixin.md#extractcontrolfromparent)

***

### extractFormDefinition()

> `protected` **extractFormDefinition**(`control`): `FormDefinition`

Defined in: [packages/angular/form-system/src/lib/mixins/extract-form-definition.mixin.ts:10](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/form-system/src/lib/mixins/extract-form-definition.mixin.ts#L10)

#### Parameters

##### control

`AbstractControl`

#### Returns

`FormDefinition`

#### Inherited from

[`ExtractFormDefinitionMixin`](ExtractFormDefinitionMixin.md).[`extractFormDefinition`](ExtractFormDefinitionMixin.md#extractformdefinition)

***

### ngOnDestroy()

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

Defined in: [packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts:202](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts#L202)

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

#### Returns

`void`

***

### ngOnInit()

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

Defined in: [packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts:102](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/form-system/src/lib/directives/control-hide-show.directive.ts#L102)

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`
