I'm starting to use ngx-datatable
.
I've currently this:
<ngx-datatable
#table
class="material"
[columns]="columns"
[headerHeight]="50"
[footerHeight]="50"
rowHeight="auto"
[limit]="10"
[rows]="testService.tests$ |async"
[columnMode]="'force'"
[selected]="selected"
>
</ngx-datatable>
but angular isn't too happy with the columnMode
: Type '"force"' is not assignable to type 'ColumnMode'
.
I've been checking the exemple of ngx-datatable, and they actually seems to bind to ColumnMode.force
.
I saw that I can import it in my component viewModel( import { ColumnMode } from '@swimlane/ngx-datatable';
), but that would implie to declare a property here just to be able to bind to the ngx-datatable.
Is there a way to reference or specify the columnMode directly in the template?