Page tree

Versions Compared

Key

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

A panel is the container of a panel level control. The panel header can be expanded, collapsed and it can have a title.

Image Added


Dynamic Views


Inside a given panel different views can be loaded. At the lowest level a View can be switched by using the showView method on the panel control.

Code Block
titleShowView example
const isViewLoaded:boolean = oGrid.showView('SimpleViewFrame');
if(isViewLoaded) {
	console.warn('frame was already loaded');
}


The options parameter represents the launchContainer options. The defaults options for launchContainer inside the showView are as follows:

Code Block
titleDefault switchView launchContainer options
{
	parentControl: oPanel, // parentControl, the target in which you will add the new container
	view: cView,
	containerName: cView,
	pages: "0,1",
	allowMultipleInstances: true,
	fetchOnInit: true
}


The options can be overwritten by providing the parameter to showView which is optional.

Code Block
titleSwitchView example
const launcher:Promise = oForm.switchView('SimpleFrameView');
launcher.then((Frame) => {
	console.log(Frame);
});


Code Block
titleSwitchView example with custom launchContainer options
const launcher:Promise = oForm.switchView('SimpleFrameView', {
	containerName: 'SomeOtherRepositoryObjectFrame'
});
launcher.then((Frame) => {
	console.log(Frame);
});