I am trying to override the User view. This is what I found in the docs but it doesnât seem to have any effect:
index.js
panel.plugin("my/view-plugin", {
components: {
"k-user-view": {
extends: "k-user-view",
template: "<div>Hello</div>"
}
}
});
If I understand this Github issue correctly, the docs might be outdated?
This solution from the Github issue works for the Users (multiple!) view for me but I havenât been able to adapt it to the User (singular!) view. Can anyone point me in the right direction?
panel.plugin("my/view-plugin", {
views: {
users: {
link: "/users",
icon: "heart",
menu: true,
component: {
template: `
<k-view class="k-todos-view">
<k-header>
Todos
</k-header>
<!-- your app goes here -->
</k-view>
`
}
}
}
});