daniel-nagy / md-data-table

Material Design Data Table for Angular Material
MIT License
1.9k stars 519 forks source link

Enable/Disable Multiple selection with expression #503

Closed giquo closed 7 years ago

giquo commented 7 years ago

Hi I been using your directive and is very nice. I want to enable or disable the multiple selection conditionally with something like multiple="booleanVariable" but i didn't realize that in the documentation the multiple attribute is "expression" nor "[expression]"

Is the a way to do so?

daniel-nagy commented 7 years ago

You can enable/disable multiple selection with an expression, take a look at the codepen.

<table md-table multiple="{{options.multiSelect}}">
giquo commented 7 years ago

Oh! [goes-and-test-it] Great! works like a charm. I didn't use the double {{variable}} Thanks man!