JavaScript
A5.ViewBoxupdateLayout Method
Syntax
A5.ViewBox.updateLayout(layout,setting[,keepValue[,animation]])
Arguments
- layoutstring
The name of the layout to show in the view box.
- settingsobject
The settings to apply to the layout.
- keepValueboolean
Whether or not to keep the previous value of the view box, or reset it. This only applies if the currently shown layout is the layout being updated.
- animationbooleanstringobject
What animation to perform. To not animate pass in false. If a string is passed in the value of the string is assumed to be the name of the animation to do. If an object is passed in it must conform to the view box animation object. See A5.ViewBox Animation Object. This only applies if the currently shown layout is the layout being updated.
Description
Update a layout.
Example
// To get a pointer to the A5.ViewBox class see {dialog.object}.getControl // assume vbObj is a pointer to an instance of the A5.ViewBox class vbObj.updateLayout('sub1',{template: 'Hello {name}'}); // update the template of the layout named "sub1"