@@ -29,6 +29,7 @@ export class ThemeChooserSampleComponent implements OnInit {
29
29
public THEME : typeof THEME = THEME ;
30
30
public data : any [ ] = DATA ;
31
31
public record ;
32
+ public themes = [ THEME . LIGHT , THEME . DARK , THEME . BLACK ] ;
32
33
33
34
@HostBinding ( "class" )
34
35
public themesClass : THEME = THEME . LIGHT ;
@@ -50,18 +51,6 @@ export class ThemeChooserSampleComponent implements OnInit {
50
51
51
52
private deletedRow ;
52
53
53
- private _dropdownPositionSettings = {
54
- horizontalStartPoint : HorizontalAlignment . Left ,
55
- verticalStartPoint : VerticalAlignment . Bottom
56
- } ;
57
-
58
- private _dropDownOverlaySettings = {
59
- closeOnOutsideClick : true ,
60
- modal : false ,
61
- positionStrategy : new ConnectedPositioningStrategy ( this . _dropdownPositionSettings ) ,
62
- scrollStrategy : new CloseScrollStrategy ( )
63
- } ;
64
-
65
54
private _dialogOverlaySettings2 = {
66
55
closeOnOutsideClick : true ,
67
56
modal : true ,
@@ -75,12 +64,6 @@ export class ThemeChooserSampleComponent implements OnInit {
75
64
this . themesClass = value ;
76
65
}
77
66
78
- public toggleDropDown ( eventArgs , selectedDropDown : IgxDropDownComponent ) {
79
- const dropDown = selectedDropDown ;
80
- this . _dropDownOverlaySettings . positionStrategy . settings . target = eventArgs . target ;
81
- dropDown . toggle ( this . _dropDownOverlaySettings ) ;
82
- }
83
-
84
67
public addRow ( ) {
85
68
this . grid1 . addRow ( this . record ) ;
86
69
this . cancel ( ) ;
@@ -111,7 +94,6 @@ export class ThemeChooserSampleComponent implements OnInit {
111
94
112
95
public ngOnInit ( ) {
113
96
this . datePicker . outlet = this . outlet ;
114
- // this.grid1.outletDirective = this.outlet;
115
97
this . data = DATA ;
116
98
this . record = new Record ( ) ;
117
99
}
0 commit comments