You need to set your defaultExportParams
which are the params used for the export when exporting via right click. Set the property allColumns
to true
in these params, and it should export all columns, including hidden columns.
See here for the list of available properties for defaultExportParams
.
Demo
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…