Hi, I m currently having trouble loading a view. I want to link from main.js to watchavideo.js :
Under main.js
CODE
this.controls.watchVideo = new KONtx.control.TextButton({
label: 'Watch A Video',
styles: {
width: 294,
height: 40,
vOffset: this.controls.items1.outerHeight + 3
}, //Style information for the Button stored in our 960x540.js file
events: {
onSelect:function(event){
KONtx.application.loadView('view-video');
}
}
}).appendTo(this);
Under watchavideo.js
CODE
var WatchAVideo = new KONtx.Class({
ClassName: 'WatchAVideo',
Extends: KONtx.system.SidebarView,
Under init.js
CODE
include("Javascript/views/main.js");
include("Javascript/views/watchavideo.js");
KONtx.application.init({
views: [
{ id: 'view-Main', viewClass: MainView },
{ id: 'view-About', viewClass: AboutView },
{ id: 'snippet-main', viewClass: Snippet },
{ id: 'view-video', viewClass: WatchAVideo },
],
defaultViewId: 'view-Main', //Linking our main.js ("MainView") as the default view for the Widget
settingsViewId: 'view-About', //Linking our aboutview.js ("AboutView") as the default view for the Widget
});
I am getting an error saying "Can't get a valid config"
Is there anything wrong with these codes? Or am I missing something?
Thanks in advance!