@@ -18,10 +18,12 @@ export class TreeGridSelectionSampleComponent implements OnInit {
18
18
19
19
constructor ( ) {
20
20
this . data = generateEmployeeFlatData ( ) ;
21
+
21
22
this . selectionModes = [
22
- { label : "none" , selected : this . selectionMode === "none" , togglable : true } ,
23
- { label : "single" , selected : this . selectionMode === "single" , togglable : true } ,
24
- { label : "multiple" , selected : this . selectionMode === "multiple" , togglable : true }
23
+ { label : "none" , selectMode : "none" , selected : this . selectionMode === "none" , togglable : true } ,
24
+ { label : "single" , selectMode : "single" , selected : this . selectionMode === "single" , togglable : true } ,
25
+ { label : "multiple" , selectMode : "multiple" , selected : this . selectionMode === "multiple" , togglable : true } ,
26
+ { label : "cascade" , selectMode : "multipleCascade" , selected : this . selectionMode === "multipleCascade" , togglable : true }
25
27
] ;
26
28
}
27
29
@@ -33,7 +35,7 @@ export class TreeGridSelectionSampleComponent implements OnInit {
33
35
public handleRowSelection ( event ) { }
34
36
35
37
public selectCellSelectionMode ( args ) {
36
- this . selectionMode = this . selectionModes [ args . index ] . label ;
38
+ this . selectionMode = this . selectionModes [ args . index ] . selectMode ;
37
39
this . snackbar . show ( ) ;
38
40
}
39
41
}
0 commit comments