B
Blueprint•2mo ago
Zeph

Changing the order of multiple components set to the same position

How can I make it so if another addon is using the same component position as my addon, my addon's component is always after the others?
8 Replies
Sirzento | Nico
Sirzento | Nico•2mo ago
A hacky way of doing this would be to set the react component invisible and move it to the right place via Javascript and set it to visible again. But there should be a better way of doing this 🤔
Emma
Emma•2mo ago
This would be really hard for us to implement, but I might be able to look into priorities, where each extension can assign a 1-100 number priority to their position, or decided by Blueprint if not defined.
Zeph
ZephOP•2mo ago
Yeah priorities would be nice, or maybe being able to add extension ids in the config to display before/after
Emma
Emma•2mo ago
I feel like that would be annoying for developers to maintain though
Zeph
ZephOP•2mo ago
Yeah that is true
Loki
Loki•2mo ago
Letting the panel admin define a load order under the extension management page might be cleaner. If they're having a problem with a specific extension they can try moving it to load last.
Emma
Emma•2mo ago
Yeah that could work, but I'm not sure how feasible that is for every component placement specifically, since these need to be fetched by the client through an api call
Loki
Loki•2mo ago
True. That would really only be feasible per-extension, not per-component.

Did you find this page helpful?