Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sample Code Snippet:


Code Block
languagejs
cbxcanvas.lib.ApplicationContainer = Class(cbx.core.Component, {
	layoutManager: '',
	constructor: function(config){
		this.wsManagerConfig = config;
		cbxcanvas.lib.ApplicationContainer.$super.call(this);
		this.createItems();
	},
	createItems: function() {
		var appContainerConfig = {
			"eleType":"div",
			"id":"application-container"
		};
		var appContainerObj = new cbxcanvas.lib.layer(appContainerConfig).getLayer();
		this.addItem(appContainerObj);
		delete appContainerConfig;
		/* Start process of creating the workspace and layout */
		var wsContainerConfig;
		var wsArr = cbx.core.ws.metadata.getWorkspaces();
		cbxcanvas.lib.workspacehandler.createWorkspaces(wsArr,this);
		 
	},
	/* Return the object of app container containing the workspaces*/
	getAppContainer: function() {
		return this.getItem(0);
	}
});
CLCR.registerCmp({'COMP_TYPE':'APPLICATION_CONTAINER'},cbxcanvas.lib.ApplicationContainer);

...