forked from e-Spirit/fsxa-pwa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add example implementation of FSXARenderContentElement (e-Spiri…
…t#79) * feat: add example implementation of FSXARenderContentElement * docs: document usage of FSXARenderContentElement
- Loading branch information
1 parent
2971c92
commit dedbe18
Showing
4 changed files
with
54 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
docs/modules/ROOT/pages/components/FSXARenderContentElement.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
= FSXARenderContextElement | ||
|
||
. <<Introduction>> | ||
. <<Usage>> | ||
. <<Properties>> | ||
|
||
== Introduction | ||
|
||
The FSXARenderContextElement is there to render nested components within .vue files (Single File Components). | ||
|
||
== Usage | ||
|
||
You can pass your nested component as a property like in this example: | ||
|
||
[source,html] | ||
---- | ||
<!-- components/fsxa/sections/Accordion.vue --> | ||
<template> | ||
<div> | ||
<div v-for="section in $attrs.payload.st_acc" :key="section.id"> | ||
<FSXARenderContentElement :element="section"></FSXARenderContentElement> | ||
</div> | ||
</div> | ||
</template> | ||
---- | ||
|
||
== Properties | ||
|
||
=== `element` - PageBodyContent | ||
|
||
The nested element |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters