You cannot ux:Include the file 'MyClasses.ux' because it's root node is marked with ux:Class. You can instantiate the class with <ActivateButton /> instead. - D:\Code\FuseProjects\project\MainView.ux(1:1):E
Yes, it is possible, but XML documents can only have one root node.
If you are making a library of classes in a single file, you shouldn’t use ux:Include. Make one class your root node, and put the other classes inside. Make it part of your project by adding the file to your .unoproj.
Panel is fine as a root; a Panel is just the most generic container we have. Since the elements you have inside your panel probably won’t have any specific layout in relation to each other, this is just fine
I’m a bit confused as to why you needed to add the file to your project explicitly, though? I could’ve sworn “*” took care of including .ux files. Perhaps I’m wrong or that was changed?
Ah, just read your use case again; my example was a bit too basic, but the whole point is you don’t need to add the ux file to your project specifically
Hi guys, im using a Navigator tag for navigation (obviusly), and i have created a custom component for back button, which is using routing with a Javascript variable, and i need to show back button every time that my app navigates throught pages, but how can i do this? i hope you can help me :).
First off, I went ahead and reformatted your post so that the code sections show up properly. You can see how I did this by editing the post yourself
Secondly, I’m having a bit of trouble understanding what you’re after. Do you want a button that shows up only when your router has some history to navigate back to?
As for why changing the button’s opacity isn’t working, I think I’d have to see more of your code. Is it possible for you to isolate the issue a bit more and send me a project with just the relevant parts? If the code is small enough I’d prefer to see it posted in the forum (makes it a bit easier for both of us), but if not you can send it here and only the Fuse team has access to it: https://www.dropbox.com/request/ZgndLtJQm5eGzG9cicGK