In the Trigger Export Externally example, the source code requires an Element Ref ID to be added:
<kendo-grid
#grid="kendoGrid"
...
>
...
<kendo-grid-pdf
fileName="Products.pdf"
[allPages]="true"
paperSize="A4"
[repeatHeaders]="true"
[landscape]="true"
>
</kendo-grid>
<button kendoButton (click)="exportToPDF(grid)">Export Grid to PDF</button>
ERRORS in Jest:
The only error shown after running a coverage test is the following:
NG0301: Export of name 'kendoGrid' not found!. Find more at https://angular.io/errors/NG0301
This basically says that I need to import into my *.module.ts -- but I am not seeing in the forums what exactly needs to be imported to help satisfy the tests.
Please advise!