Search code examples
angularvmware-clarity

Datagrid selection checkboxes do not show


I want to get a datagrid with checkbox to select rows. I followed the instruction here: https://vmware.github.io/clarity/documentation/v0.12/datagrid/selection

What am I missing?

<clr-datagrid [(clrDgSelected)]="selected" [clDgRowSelection]="true">
  <clr-dg-column>Name</clr-dg-column>
  <clr-dg-row *clrDgItems="let item of items" [clrDgItem]="item">
    <clr-dg-cell>{{ item.name }}</clr-dg-cell>
  </clr-dg-row>
</clr-datagrid>

Thanks


Solution

  • clDgRowSelection is deprecated since v0.12 and is there only for backward compatibility. Can you try with the new clrDgRowSelection ?

    BTW, here you can find an working example also with the old one. could you post a full example??