Sitevision Developer
Log in

Log in

app

app is available in both a server and client side context and holds some data about the module and it's context.

In a client side context app could also be used to send triggers or data within the WebApp.

Properties

app.defaultLocale

The default locale of the module

app.locale

The locale of the module

app.portletId

The module's identifier

app.webAppId

The WebApp identifier. Specified in the manifest.

app.webAppVersion

The active version of the WebApp

Methods

The methods are available in a client side context to trigger and send events within a WebApp.

app.trigger(key [, data...])

Triggers an event within the WebApp.

app.on(key, () => {})

Listen to an event.

Did you find the content on this page useful?