Nesting a static a view

`
import {JetView} from “webix-jet”;

export default class TicketView extends JetView {
config() {

    return {
        template: {
            view: "toolbar",
            height: 44,
            cols: [
                {view: "button", label: "New", autowidth: true}
            ],
        }
    };

}

}
`

I am then trying to use the view statically, like so:

`
{
view: “tabview”,

cells: [
{id: “overviewView”, header: “Overview”, body: {template: “Overview”}},
{id: “ticketView”, header: “Tickets”, body: TicketView},
]
}
`

But the TicketView renders as such:

[object Object]

What am I doing wrong?

Hello, @abarylski

The thing is that the config() method should return the interface of the component that will be initialized.
Here is the snippet: Code Snippet

Please, pay attention that there are two different “types” of template: template as a view and template as a property.