ExportMenu – Force data as string – international phone number

Web Tips Q & ACategory: Krajee Yii2 ExtensionsExportMenu – Force data as string – international phone number
MO@Nfon asked 2 years ago

I need to insert international phone numbers (+4965418765419) in Excel/CSV using ExportMenu::widget.
But PHPExcel converts it to int.
I’d use PHPExcel_Cell::setValueExplicit(), but can I tell ExportMenu to do so?
Thanks.

1 Answers
Kartik Staff answered 2 years ago

Yes you can set the onRenderDataCell property of ExportMenu as a Closure callback to achieve something as above.

Login or register to contribute or comment.

Login   Register