6
« on: September 15, 2023, 02:22:08 pm »
I already add it,
hereunder the object code :
obj = {
height: 700,
width: '100%',
scrollModel: {
autoFit: 1,
},
wrap: 1,
autofill: 1,
numberCell: {
show: 0,
},
showHeader: 1,
showToolbar: 1,
showTop: 1,
resizable: 1,
columnBorders: 0,
collapsible: 0,
freezeCols: 0,
autoAddRow: 1,
autoAddCol: 1,
rowBorders: 0,
stripeRows: 0,
selectionModel: {
type: 'cell',
},
editable: 1,
editor: {
style: {
width: 1,
},
},
showTitle: 0,
fillHandle: 'all',
filterModel: {
hideRows: 1,
},
sortModel: {
on: 0,
},
autoRowHead: 1,
autoRow: 1,
toolbar: {
items: [{
type: 'button',
label: 'Export Excel',
cls: 'ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only',
listener: exportXlsx,
}, {
type: 'button',
label: 'Export PDF',
cls: 'ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only',
listener: exportPDF,
}, ],
},
complete: function() {
window.dispatchEvent(new Event('resize'));
},
editModel: {
addDisableCls: 1,
},
tabModel: {
tabs: [],
},
};
But it's not working,
I notice that tabs are situated in a div .pq-tabs-strip, into the div .pq-grid-bottom, in my case the div .pq-tabs-strip do not exist.
Any idea ?