Displaying a simple widget in the admin interface #2394
-
Hi, I'd really appreciate any help with this; I've searched the discussions and do not see anyone else with this problem, and I'm stumped! In short I'm trying to just create a the simplest widget on the admin UI. The following code compiles fine, and I get no errors when I run the dev-server - I also get no errors in the console, but I don't see my widget when logged in as superadmin in the admin panel. I've read and re-read the new docs. Seems as though registerDashboardWidget never gets called. My component, jb-widget.component.ts
and then I have my shared extension module, shared-ui-extensionmodule:
and finally my plugin, jb.plugin.ts:
Finally in my vendure config I have:
Any pointers or help gratefully received. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, I don't see anywhere if you code that you are calling btw I'm currently working on all the ui extension docs, so this should soon be easier to follow! |
Beta Was this translation helpful? Give feedback.
-
Thanks Michael - really really appreciate how responsive you are! My misunderstanding - I'd made an assumption that when running in dev mode vendure would somehow spot the uiExtensions object in the plugin and do the necessary compilation - but I just need to do some more reading. |
Beta Was this translation helpful? Give feedback.
Hi,
I don't see anywhere if you code that you are calling
compileUiExtensions()
- see these docs: https://beta-docs.vendure.io/guides/extending-the-admin-ui/using-angular/#4-pass-the-extension-to-the-compileuiextensions-functionbtw I'm currently working on all the ui extension docs, so this should soon be easier to follow!