0

I would like to create my own custom column to ui-grid, similiar to select column (column with check mark) on attached picture: enter image description here

Is this possible, what is easiest way to do this?

Antea
  • 177
  • 1
  • 4
  • 10

1 Answers1

0

Documentation for this has been moved to here. The basics are that you need to add the row header as a new column in the onRegisterGridApi property of your gridOptions object. The definition of which is the same as any other column (i.e. ui.grid.class:GridOptions.columnDef).

For example, if all your rows had a property you wanted to use as the row header, you could use a custom template like:

<div class="ui-grid-row-header-cell ui-grid-disable-selection">
  <div class="ui-grid-cell-contents">{{row.entity['rowHeaderFieldName']}}</div>
</div>
Which you would assign to the cellTemplate property of your row header column definition