Skip to content

Commit

Permalink
chore(micro-app): update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
juanigalan91 committed Dec 13, 2024
1 parent c73dbc9 commit f926d8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/javascript/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,7 @@ window.lumapps.customize(({ components }) => {

This component allows to display a [micro app](https://docs.lumapps.com/docs/ls/content/3975133065180467/knowledge-l40063457350627685) on any of the Customizations API extension points. This can be done by using the micro app's id (which can be retrieved from the [Installed extensions](https://docs.lumapps.com/docs/ls/content/5508517796380672/admin-l9568619807585214extensions#installed-extensions) section by browsing the Settings of each extension) and using it.

For example, the following snippet will display a MicroApp above the Org. chart on the User's Profile.
```js
window.lumapps.customize(({ components, constants, render }) => {
const { MicroApp, Card } = components;
Expand All @@ -795,7 +796,7 @@ window.lumapps.customize(({ components, constants, render }) => {
target: targets.USER_PROFILE_ORG_CHART,
toRenderWithContext: () => {
return Card({
className: 'user-about-page__article',
className: 'user-about-page__micro-app',
children: [
MicroApp({
id: '<your micro app id>'
Expand Down

0 comments on commit f926d8c

Please sign in to comment.