institut-de-genomique / Ultimate-DataTable

This AngularJS directive generate a HTML table with build-in fonctionnality like save, edit, remove, pagination etc...
http://institut-de-genomique.github.io/Ultimate-DataTable/
45 stars 26 forks source link

Function for "property" throwing Syntax error #50

Open Misoder opened 5 years ago

Misoder commented 5 years ago

According to the docs one should be able to specify a function for the 'property' property. However, when I try it with, for example (just for testing):

"edit": false, "order": true, "property": function() { return "yadayada"; },

I get a syntax error:

Error: [$parse:syntax] Syntax Error: Token '{' is an unexpected token at column 12 of the expression [function() { return "length"; }] starting at [{ return "length"; }].

I probably do something wrong. How is this supposed to be used?