Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json expression for columns #35

Open
lknhiayi opened this issue Dec 7, 2014 · 0 comments
Open

json expression for columns #35

lknhiayi opened this issue Dec 7, 2014 · 0 comments

Comments

@lknhiayi
Copy link

lknhiayi commented Dec 7, 2014

if we have something like that it won't work
columns="columns[dynamic.id]"

The fix is to add
Line 160
'$parse',
function (settingFactory, autoCompleteFactory, $rootScope, $parse) {

Line 227
// var settingKeys = columnSetting.split('.');
// while (settingKeys.length > 0) {
// var key = settingKeys.shift();
// settingToCheck = settingToCheck[key];
// }
// return angular.toJson([settingToCheck]);
return angular.toJson($parse(columnSetting)(settingToCheck));

Line 253 (after shift of lines inserted in 227)

// while(objKeys.length > 0) {
// var key = objKeys.shift();
// objToCheck = objToCheck[key];
// }
//
// return angular.toJson([objToCheck]);
return angular.toJson($parse(attrs.datarows)(objToCheck));

And it works for me

Thank you for this handsonTable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants