cilog-lib 1.13.9 → 1.13.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1501,27 +1501,29 @@ class CilogGridComponent {
1501
1501
  };
1502
1502
  cols.push(colDef);
1503
1503
  });
1504
- let colDelete = {
1505
- headerName: '',
1506
- width: 50,
1507
- resizable: false,
1508
- cellClass: 'no-padding-cell',
1509
- suppressSizeToFit: true,
1510
- cellRendererSelector: (params) => {
1511
- if (params.node.isRowPinned()) {
1512
- return undefined;
1513
- }
1514
- return {
1515
- component: GridBoutonComponent,
1516
- params: {
1517
- icon: 'pi pi-times',
1518
- severity: 'danger',
1519
- onClick: this.onDeleteEvent.bind(this)
1504
+ if (this.options().rowsDeletable) {
1505
+ let colDelete = {
1506
+ headerName: '',
1507
+ width: 50,
1508
+ resizable: false,
1509
+ cellClass: 'no-padding-cell',
1510
+ suppressSizeToFit: true,
1511
+ cellRendererSelector: (params) => {
1512
+ if (params.node.isRowPinned()) {
1513
+ return undefined;
1520
1514
  }
1521
- };
1522
- }
1523
- };
1524
- cols.push(colDelete);
1515
+ return {
1516
+ component: GridBoutonComponent,
1517
+ params: {
1518
+ icon: 'pi pi-times',
1519
+ severity: 'danger',
1520
+ onClick: this.onDeleteEvent.bind(this)
1521
+ }
1522
+ };
1523
+ }
1524
+ };
1525
+ cols.push(colDelete);
1526
+ }
1525
1527
  return cols;
1526
1528
  }, ...(ngDevMode ? [{ debugName: "colDefs" }] : /* istanbul ignore next */ []));
1527
1529
  getTypeFiltre(col) {