Hi Ane,
Thanks for contacting Syncfusion support.
You can specify the toolbar variable type as below to resolve this problem
import { ToolbarItems } from '@syncfusion/ej2-angular-grids';
import { ItemModel } from '@syncfusion/ej2-angular-navigations';
@Component({
selector: 'control-content',
templateUrl: 'normal-edit.html',
})
export class NormalEditComponent implements OnInit {
...
public toolbar: (ToolbarItems | ItemModel)[];
public ngOnInit(): void {
...
this.toolbar = ['Add', 'Edit', 'Delete', 'Update', 'Cancel', { text: 'Click', ... }];
....
}
}
|
Regards,
Madhu Sudhanan P