[MGNLFE-171] DOCS: Fallback component Created: 15/Feb/22 Updated: 01/Nov/22 Resolved: 01/Nov/22 |
|
| Status: | Closed |
| Project: | Magnolia Frontend Helpers |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Neutral |
| Reporter: | Martin Drápela | Assignee: | Martin Drápela |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | Not Specified | Time Spent: | Not Specified |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Issue Links: |
|
|||||||||||||||
| Sub-Tasks: |
|
|||||||||||||||
| Template: |
|
|||||||||||||||
| Acceptance criteria: |
Empty
|
|||||||||||||||
| Task DoR: |
Empty
|
|||||||||||||||
| Date of First Response: | ||||||||||||||||
| Epic Link: | SaaS TPR - SPA | |||||||||||||||
| Sprint: | DevX 22 | |||||||||||||||
| Story Points: | 1 | |||||||||||||||
| Team: | ||||||||||||||||
| Description |
|
See |
| Comments |
| Comment by Phong Le Quoc [ 19/Oct/22 ] |
|
To use the new feature
this.editorContext.setFallbackComponent(value);
<EditablePage templateAnnotations={data.templateAnnotations} content={data.content} config={config} />
this.config.fallbackComponent = value
value is a function - that returns a component or a boolean value - or a boolean value. Note: examples are from frontend-helper samples |
| Comment by Christopher Zimmermann [ 20/Oct/22 ] |
|
plequoc can you please update the above. I think that is obsolete now right? cc: mdrapela |
| Comment by Martin Drápela [ 01/Nov/22 ] |
|
https://docs.magnolia-cms.com/headless/spa-development/fallback-component.html |