-
Notifications
You must be signed in to change notification settings - Fork 672
Expand file tree
/
Copy pathanimation.ts
More file actions
83 lines (63 loc) · 1.63 KB
/
animation.ts
File metadata and controls
83 lines (63 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/* tslint:disable:max-line-length */
import {
Component,
OnInit,
OnDestroy,
NgModule,
Host,
SkipSelf,
Input
} from '@angular/core';
import type { AnimationConfig } from 'devextreme/common/core/animation';
import {
DxIntegrationModule,
NestedOptionHost,
} from 'devextreme-angular/core';
import { NestedOption } from 'devextreme-angular/core';
@Component({
selector: 'dxo-autocomplete-animation',
template: '',
styles: [''],
imports: [ DxIntegrationModule ],
providers: [NestedOptionHost]
})
export class DxoAutocompleteAnimationComponent extends NestedOption implements OnDestroy, OnInit {
@Input()
get hide(): AnimationConfig {
return this._getOption('hide');
}
set hide(value: AnimationConfig) {
this._setOption('hide', value);
}
@Input()
get show(): AnimationConfig {
return this._getOption('show');
}
set show(value: AnimationConfig) {
this._setOption('show', value);
}
protected get _optionPath() {
return 'animation';
}
constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost,
@Host() optionHost: NestedOptionHost) {
super();
parentOptionHost.setNestedOption(this);
optionHost.setHost(this, this._fullOptionPath.bind(this));
}
ngOnInit() {
this._addRecreatedComponent();
}
ngOnDestroy() {
this._addRemovedOption(this._getOptionPath());
}
}
@NgModule({
imports: [
DxoAutocompleteAnimationComponent
],
exports: [
DxoAutocompleteAnimationComponent
],
})
export class DxoAutocompleteAnimationModule { }