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