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

Add option to configure content rendering in block form #41

Closed
wants to merge 1 commit into from

Conversation

nag5000
Copy link

@nag5000 nag5000 commented Mar 22, 2017

yieldedContentRendering:

  • 'always': render always (by default, old behaviour);
  • 'lazy': render since the first opening;
  • 'open': render only when modal is open, content is destroyed on closing.

Closes #40.

@esbanarango
Copy link
Collaborator

Thank you @NagiTs could you add this option to the readme.

@nag5000
Copy link
Author

nag5000 commented Mar 22, 2017

Hmmm, I would like to note that {{#modal.open}}...{{/modal.open}} сontextual сomponent will not be rendered with option yieldedContentRendering='lazy'/'open'. It seems that the problem can't be solved without breaking changes. Probably, it should be documented, if you have no other ideas.

`yieldedContentRendering`:
- 'always': render always (by default, old behaviour);
- 'lazy': render since the first opening;
- 'open': render only when modal is open, content is destroyed on closing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lazy rendering of content in block form
2 participants