RecreateScript Property

Version: Available or changed with runtime version 1.0.

Specifies the script which is invoked when the control add-in is recreated.

Applies to

  • Control Add In

Property Values

A path to a single script file. The default is blank.


After the hosting page has been loaded and the control add-in has been initialized, the page may need to recreate the control add-in during specific situations, such as if the user has moved the add-in during personalization.

You can use this property to optimize re-initialization of the control add-in when it has already been initialized earlier. For example, this could be used to redraw some of the visuals without the need for expensive fetching of data.

This property is optional. If left blank, the script defined by StartupScript will be invoked when the control add-in is recreated.

Code Example

RecreateScript = 'js/chartCached.js';

See Also

Control Add-In Object