User component menu not showing up in dashboard designer
-
I am trying to setup a similar userModule and ran through the example here
https://help.infiniteautomation.com/getting-started-with-a-user-module/
but I don't get a UserComponents dropdown in my designer
-
Are there any errors in your browsers console ?
-
-
When in the dashboard designer page right click on click inspect. This will open your browser debug tools. Look for the console tab to see if there are any errors.
-
-
@wallobee Please create a new thread in the future.
@wallobee said in Pop up window (face plate):
I am trying to setup a similar userModule and ran through the example here
https://help.infiniteautomation.com/getting-started-with-a-user-module/
but I don't get a UserComponents dropdown in my designerThis most obvious thing I need to ask is, do you have components/directives defined in your user module? I seem to remember there was a bug around this that I fixed, so it may not be working in the currently released version. You can still manually add them to the page by name.
-
How do I define the components/directives in my user module?
I copied the example from the tutorial
How do i work around and add them manually to the page?
-
I trust that you've added the userModule in the UI Settings otherwise the component won't show.
2) once under page editor you can add them by typing them in.
In this case:<my-component name="'Foxtrot'"></mycomponent>
I believe you can also drag and drop them in the dashboard editor from the user components drop down.
@wallobee said in User component menu not showing up in dashboard designer:
How do I define the components/directives in my user module?
I copied the example from the tutorial
How do i work around and add them manually to the page?
If by manually you mean with your own dashboard page templates you'll need to move away from using the public file store and break everything out into files. If you've looked at the dialogue component I wrote that you commented on you'll see how it's all laid out.
-
@wallobee said in User component menu not showing up in dashboard designer:
How do I define the components/directives in my user module?
By adding this to your user module code as per the example.
userModule.component('myComponent', {options...});
@wallobee said in User component menu not showing up in dashboard designer:
How do i work around and add them manually to the page?
Then enter the component name e.g.
myComponent
ormy-component
-
I added the component with the + and now User Components is visible and i can drag them from the menu