-
Notifications
You must be signed in to change notification settings - Fork 162
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
feat(grid): expose column input for template context #9694
Conversation
public set templateContext(value: any){ | ||
this._contextObject = value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
templateContext
suggests that the use can overwrite the context object in the column templates making it a little dubious.
MaybeadditionalTemplateContext
or something along these lines. -
I don't think you need to separate it between a setter and a getter. Just leave it as simple property on the class.
-
It will be nice to access the additional context directly from the template binding:
<ng-template igxCell let-props="additionalContext">
...
</ng-template>
Closes #9020
Additional information (check all that apply):
Checklist:
feature/README.MD
updates for the feature docsREADME.MD
CHANGELOG.MD
updates for newly added functionalityng update
migrations for the breaking changes (migrations guidelines)