Documentation
startup
Type : function
Arguments : dataFromURL (object)
Context : the jQuery object used to initialize Kaiten
Default : null
This callback function is executed just after Kaiten is created.
The argument dataFromURL is an object which holds the parameters passed with the URL, if any. It can be used to load a specific panel and/or perform specific actions.
The context of the startup function is the jQuery object used to initilize Kaiten.
exemples
$('#container').kaiten({
columnWidth : '480px',
startup : function(dataFromURL) {
// parameters were sent with the URL, maybe the user has chosen to open a panel in a new tab..?
if (dataFromURL)
{
this.kaiten('load', dataFromURL); // this is $('#container')
}
else
{
// load our home panel
this.kaiten('load', { kTitle:'Home', kConnector : 'discogs.home' });
}
}
});