...
Code Block | ||
---|---|---|
| ||
import { registerBreadcrumb } from "@openmrs/esm-framework"; function setupOpenmrs() { registerBreadcrumb({ path: `${window.spaBase}/myPage`, title: "My First Page", }); return { // specify your pages or extensions }; } |
The breadcrumb will be displayed to the user as My First Page
...
Code Block | ||
---|---|---|
| ||
import { registerBreadcrumbs } from "@openmrs/esm-framework"; function setupOpenmrs() { registerBreadcrumbs([ { path: `${window.spaBase}/myPage`, title: "My First Page", }, { path: `${window.spaBase}/myPage/subpage1`, title: "Subpage 1", parent: `${window.spaBase}/myPage`, }, { path: `${window.spaBase}/myPage/subpage2`, title: "Subpage 2", parent: `${window.spaBase}/myPage`, }, ]); return { // specify your pages or extensions }; } |
The breadcrumb will be displayed to the user as My First Page
My First Page / Subpage 1
My First Page / Subpage 2
...