i want the dates to be formatted like that DD/MM/YYYY at the nitinitialisation of the table but unfortunately nothing is happened.
// ----------------------------------------------------------------------------------------------
this is my html
<hot-table id=“hot” [hotId]=“idTableau” class=“hot” [data]=“majStocksArray” [settings]=“hotSettings” >
// ----------------------------------------------------------------------------------------------
this is my settings
hotSettings: Handsontable.GridSettings = {
height: MajStockComponent.HANDSON_TABLE_HEIGHT,
width: MajStockComponent.HANDSON_TABLE_WIDTH,
stretchH: 'all',
rowHeaderWidth: MajStockComponent.HANDSON_TABLE_ROW_HEADER_WIDTH,
colWidths: MajStockComponent.HANDSON_TABLE_COL_WIDTH,
colHeaders: MajStockComponent.HANDSON_TABLE_IS_COL_HEADER,
licenseKey: ConstantesNuc.LICENCE_KEY_TABLE_HANDSOME_TABLE,
language: ConstantesNuc.HANDSOME_FR,
columns: [
{
data: "code",
type: 'text',
readOnly: true
},
{
data: "num",
type: 'text',
readOnly: true
},
{
data: "date",
type: 'date',
readOnly: true,
dateFormat: 'DD/MM/YYYY',
correctFormat: true,
},
],
nestedHeaders: [
[{ label: '', colspan: 3 }],
['Code ', 'Num ', 'Date']
],
afterLoadData:(bool)=>{
this.afterRender();
},
}
// ----------------------------------------------------------------------------------------------
this is the method afterRender:
private afterRender( ) {
console.log("rendere")
this.hotRegisterer.getInstance(this.idTableau).render();
this.hotRegisterer.getInstance(this.idTableau).validateCells();
}
// ----------------------------------------------------------------------------------------------
and even when i use the hooks (afterViewInit of angular it says that cannot execute render of undefined