Hello, I’ve been trying to figure out how to create a custom page of settings for my DeviceExtensionPoint, and so far I’ve only been able to figure out how to create a link in the menu. Is there a more comprehensive example of how I might be able to achieve this? For example, I want something like the programmable simulator Edit Program page.
From what I’ve gathered so far, I can override DeviceExtensionPoint.getMenuActions with something like
public List<MenuAction> getMenuActions() {
return List.of(new MenuAction("title", "descr", new ReactComponentInfo("DeviceConfiguration", new SystemJsModule(Util.MODULE_ID, "/res/web-ui-test/helloIgnition.js"))));
}
I also created an instance of that SystemJsModule in the module hook and registered it with the systemjsmoduleregistry and overrode getMountedResourceFolder, mountRouteHandlers, getMountPathAlias and onMountedResourceRequest like in the sdk example, but I’m seeing
ERROR: Failed to load
Module: MODULE_ID
Component: DeviceConfiguration
after clicking my new link. I’m reusing much of the resources from the sdk example, so I do have something at that path. The gateway log isn’t reporting any useful errors however.