I’d appreciate help in understanding how to create a TabView. So far I tried adding the following to the main JS file of the application, but I keep getting an error that design is called on “undefined,” i.e. that SC.TabView is undefined.
Todos.DashboardTabs = SC.TabView.design({
tabLocation: SC.TOP_LOCATION,
items: [{ title: "Projects", value: Todos.TodoView }],
nowShowing: Todos.TodoView // A template + view I created
}
My TabView looks like this:
This is SC 1.6. Full source is available here:
https://github.com/joachimhs/EurekaJ/blob/master/EurekaJ.Manager/src/main/webapp/sc1/js/views/administration/administration_pane.js