-
Notifications
You must be signed in to change notification settings - Fork 672
Expand file tree
/
Copy pathborder.ts
More file actions
107 lines (84 loc) · 2.09 KB
/
border.ts
File metadata and controls
107 lines (84 loc) · 2.09 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/* tslint:disable:max-line-length */
import {
Component,
OnInit,
OnDestroy,
NgModule,
Host,
SkipSelf,
Input
} from '@angular/core';
import type { DashStyle } from 'devextreme/common/charts';
import {
DxIntegrationModule,
NestedOptionHost,
} from 'devextreme-angular/core';
import { NestedOption } from 'devextreme-angular/core';
@Component({
selector: 'dxo-bullet-border',
template: '',
styles: [''],
imports: [ DxIntegrationModule ],
providers: [NestedOptionHost]
})
export class DxoBulletBorderComponent extends NestedOption implements OnDestroy, OnInit {
@Input()
get color(): string {
return this._getOption('color');
}
set color(value: string) {
this._setOption('color', value);
}
@Input()
get dashStyle(): DashStyle {
return this._getOption('dashStyle');
}
set dashStyle(value: DashStyle) {
this._setOption('dashStyle', value);
}
@Input()
get opacity(): number | undefined {
return this._getOption('opacity');
}
set opacity(value: number | undefined) {
this._setOption('opacity', value);
}
@Input()
get visible(): boolean {
return this._getOption('visible');
}
set visible(value: boolean) {
this._setOption('visible', value);
}
@Input()
get width(): number {
return this._getOption('width');
}
set width(value: number) {
this._setOption('width', value);
}
protected get _optionPath() {
return 'border';
}
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: [
DxoBulletBorderComponent
],
exports: [
DxoBulletBorderComponent
],
})
export class DxoBulletBorderModule { }