JavaScript

A5.ViewBoxrefresh Method

Syntax

A5.ViewBox.refresh([keepValue[,animation]])

Arguments

keepValueboolean

Whether or not to keep the previous value of the view box, or reset it.

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.

Description

Refresh the view box. If the layout being used is "static" then the HTML will be replaced with the original HTML (or the function to generate it will be called again). If the layout type is "template" then the template will be regenerated from the current data in the view box.

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.refresh(false,{
	type: 'slide-right', // slide content from left to right
	duration: 600 // in .6 of a second
});