Closed ubergeoff closed 3 years ago
DEMO here: https://www.flingo.co.za/grid/dashboard1
Thanks for the question and your demo @ubergeoff -- your solution makes sense to me. I don't really have any suggestions to improve your existing solution.
I think it's a good idea to add this to our examples on gridjs.io.
@afshinm we definitely need to add this to this section of the documentation https://gridjs.io/docs/integrations/angular/#can-i-use-angular-components-in-plugins-formatters-etc-not-yet
Currently it says the following, which is not true:
Can I use Angular components in plugins, formatters, etc? Not yet
I have constructed a StackBlitz that is a self-contained example of how to render an Angular component or template inside of a Grid.JS cell:
https://stackblitz.com/edit/stackblitz-starters-ng6gl4?file=package.json
Proposal and/or example for future Angular GridJS custom formatter columns Ability to add Custom Angular components as "formatter"
Please see my proposed solution/example
And the
createDivContainer
function:Would this be considered a good practice..?
Are there any further enhancement that can be applied to the above example..?