Excel Export - how to export CellOptions interface

1 Answer 28 Views
Excel Export
Jonathan
Top achievements
Rank 1
Jonathan asked on 21 Jun 2024, 05:25 PM | edited on 21 Jun 2024, 05:26 PM

in Kendo excel export version 5, I was able to use the CellOptions interface found in CellOptions.d.ts.  This allowed me to create a shortcut const that could be used across my app for standard cellOptions:

 

import { CellOptions } from "@progress/kendo-react-excel-export/dist/npm/ooxml/CellOptionsInterface";

export const cellOptions: CellOptions = { verticalAlign: "center", textAlign: "center" };

then use it like this:

<ExcelExportColumn field="ID" title="ID" {...columnOptions} width={100} />

 

 

However, in version 7 (and I'm guessing 8), that CellOptions interface has been moved to index.d.ts and is not exported from the types.

/**
 * The options for the Excel Export cell.
 */
declare interface CellOptions { ... }

 

Is there some way I can export or use this to create the same kind of shortcut?  Thank you.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 24 Jun 2024, 07:26 AM

Hello,

The issue seems like a bug - I have logged it for fixing and we will do our best to fix it as soon as possible - https://github.com/telerik/kendo-react/issues/2323

Thank you your concern with KendoReact. If you observe other issues or have questions please don't hesitate to let us know.

Regards,
Plamen
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
Excel Export
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or