Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

feat(PostRender): use postRender to render an Angular Component, closes #7 #130

Merged
merged 2 commits into from
Feb 20, 2019

Conversation

ghiscoding
Copy link
Owner

  • this feature kinda simulate a Formatter with an Angular Component but has some slight delay in rendering the content, that is because Angular requires at least 1 cycle to render it's own component and cannot output a string right (which SlickGrid Formatter requires to work).

this closes issue #7

I reopened the issue as this will be possible with this PR,, however there are limitation. This is doable via asyncPostRender (with enableAsyncPostRender) but this is an async function in SlickGrid and this works fine but we can visually see the data being change. So basically, we cannot use a Formatter because Angular Component needs at least 1 cycle before the Angular Component is rendered properly and SlickGrid Formatter requires string right away, so we cannot use Formatter for that reason.

Here's a SlickGrid PostRender demo and here's an animated gif of an Angular Component using the postRender. While I scroll up down, you can visually see a slight delay in rendering the content of that cell (the bold text, 3rd column)... but hey it's works and it might useful for some.

2019-02-19_21-07-59

Ghislain Beaulac added 2 commits February 19, 2019 21:13
- this feature kinda simulate a Formatter with an Angular Component but has some slight delay in rendering the content, that is because Angular requires at least 1 cycle to render it's own component and cannot output a string right (which SlickGrid Formatter requires to work).
@ghiscoding ghiscoding merged commit cd322d1 into master Feb 20, 2019
@ghiscoding ghiscoding deleted the feat/angular-component-post-render branch February 28, 2019 23:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant