This message was deleted.
# extensions
a
This message was deleted.
b
Hello @few-caravan-91238 . What do you mean by
replace rancher component via extension
? Can you provide me an example on what you are trying to achieve?
f
For example, if I want to replace a button in the interface with my own, or this banner here, can I do it at all?
I apologize for the confusion, I meant UI components.
b
There’s a way to override pages, components and such, but we don’t recommend doing it because you’ll lose the updates that the
shell
package provides by including these items. What we recommend is the usage of the Extensions API to extend your Dashboard rather than doing replaces (check our hooks like Actions, Cards, Panels, Tabs, Table Columns, Components). To achieve what you want, you’ll need to overwrite certain parts. Ex: you want to change stuff in the homepage, so there’s a
page
called
home.vue
in
shell/pages
. If you create a folder on your package called
page
and create a file called
home.vue
, whatever is inside this last file will override the default homepage. Again, I must emphasise that we don’t recommend this approach in any way, because you will lose bug fixes that might come in with the bump of the
shell
package.
1
f
Thanks!
I tried creating a custom page or component(components, pages folders) but it doesn't work, it works for list, detail folders