From 1102ac59027393c69c173eddf017990895ffebb8 Mon Sep 17 00:00:00 2001 From: Jim Ehrismann Date: Tue, 17 Nov 2020 18:09:54 -0500 Subject: [PATCH] update main extension guide Signed-off-by: Jim Ehrismann --- docs/extensions/guides/main-extension.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/extensions/guides/main-extension.md b/docs/extensions/guides/main-extension.md index 5a681f3b13..c9ad9e378b 100644 --- a/docs/extensions/guides/main-extension.md +++ b/docs/extensions/guides/main-extension.md @@ -73,4 +73,4 @@ export default class SamplePageMainExtension extends LensMainExtension { } ``` -`appMenus` is an array of objects satisfying the `MenuRegistration` interface. `MenuRegistration` extends React's `MenuItemConstructorOptions` interface. `parentId` is the id of the menu to put this menu item under (todo: is this case sensitive and how do we know what the available ids are?), `label` is the text to show on the menu item, and `click()` is called when the menu item is selected. In this example we simply log a message, but typically you would navigate to a specific page or perform some operation. \ No newline at end of file +`appMenus` is an array of objects satisfying the `MenuRegistration` interface. `MenuRegistration` extends React's `MenuItemConstructorOptions` interface. `parentId` is the id of the menu to put this menu item under (todo: is this case sensitive and how do we know what the available ids are?), `label` is the text to show on the menu item, and `click()` is called when the menu item is selected. In this example we simply log a message, but typically you would navigate to a specific page or perform some operation. Pages are associated with the [`LensRendererExtension`](renderer-extension.md) class and can be defined when you extend it. \ No newline at end of file