SoftadminSnippet.reloadSnippet

 Show all Hide all

Reloads all instances of the specified snippet on the current page.

Examples

SoftadminSnippet.reloadSnippet('MySnippet');
SoftadminSnippet.reloadSnippet('MySnippet', 'MySnippetElementId');
SoftadminSnippet.reloadSnippet('MySnippet', { anAttribute: 'Value 1', anotherAttribute: 'Value 2' });
SoftadminSnippet.reloadSnippet('MySnippet', 'MySnippetElementId', { anAttribute: 'Value 1', anotherAttribute: 'Value 2' });

Usage

SoftadminSnippet.reloadSnippet(name)
SoftadminSnippet.reloadSnippet(name, elementId)
SoftadminSnippet.reloadSnippet(name, attributeParameterOverrides)
SoftadminSnippet.reloadSnippet(name, elementId, attributeParameterOverrides)

See also

name : String

Name of the snippet to reload.

elementId : String

Id of the element to target. This allows you to reload a single snippet if there are multiple instances of the same snippet on the page.

attributeParameterOverrides : Object

An object with a property for every attribute parameter to override.