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

Unable to get state value on cell.getValuePrepareFunction callback #22

Open
geneeblack opened this issue Sep 7, 2016 · 0 comments
Open

Comments

@geneeblack
Copy link
Contributor

It would be nice to be able to get some additional cell state information on the cell.getValuePrepareFunction callback, this would allow round tripping optional information state settings on the cell, column or row of that cell.

proposed change to
https://github.com/akveo/ng2-smart-table/blob/master/src/ng2-smart-table/lib/data-set/cell.ts#L17

from
return prepare.call(null, this.value);
to
return prepare.call(null, this.value, {row: this.row, column: this.column, dataSet: this.dataSet});

that would allow access to some additional cell state without breaking existing code

reason for request
I am interested in being able to store state information on the cell settings and would like to retrieve that information on the callback

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

No branches or pull requests

1 participant