NestedRows - Change Row Index to +/- Symbol

Tags: #<Tag:0x00007efc6cf3b3c0>

Hi,

I am using below code to construct the nested rows. First column is displayed as Row number. Can I replace this row number with the ‘+/-’ symbols?

var sourceDataObject = this.groupData,
container = document.getElementById(‘nested-row-id’),
hot;
var doc = document.getElementById(‘grid-container’);

hot = new Handsontable(container, {
  data: sourceDataObject,
  rowHeaders: true,
  colHeaders: ['Category', 'Code', 'Name'],
  nestedRows: true,
  contextMenu: true,
  rowHeaderWidth: 90,
  licenseKey: "non-commercial-and-evaluation",
  hiddenColumns: {
    columns: [0],
  }
});
hot.getPlugin("nestedRows").collapsingUI.collapseAll();

Hey Siju,

Can you share a draft of the expected result?

Now that requirement got changed. Thanks for the reply.

Aaa ok. So if you’d have any other requirements please feel free to open a new ticket.