Is there a way to dynamically set the sortable property to false in DatatableComponent...

Discussão em 'Angular' iniciado por Mateus Silva, Setembro 23, 2024.

  1. Mateus Silva

    Mateus Silva Guest

    I would like to know if this possibility exists, instead of setting [sortable]='false' in each ngx-datatable-column?

    I tried using @ViewChild to get the component reference and, after that, loop through the columns, access sortable, and set it to false.

    Continue reading...

Compartilhe esta Página