esvit / ng-table

Simple table with sorting and filtering on AngularJS
http://esvit.github.io/ng-table
BSD 3-Clause "New" or "Revised" License
2.77k stars 851 forks source link

How to set columns filter dynamically? #887

Open burakkilic opened 8 years ago

burakkilic commented 8 years ago

Hello;

I want to do something like:

 var field = 'name.'+ 'en'; //en will be dynamic
    $scope.cols = [
        { valueExpr: "shop.name.en", title: "Name", filter: { field : "text" }, show: true },
    ];

but it doesn't work. How can I do that?

tanmuhittin commented 8 years ago

issue #888