Initialization
Including the Client Extension API Javascript Library
To use the Client Extension API services, you must include the symphony-api.js JavaScript file in your application controller and views.
Including Symphony's Style Sheet
To style your app, you must include the symphony-style.css CSS file in your application views and add the class "symphony-external-app" to the <body>
tag of your app views.
Icons guidelines
Icons must be square, with a recommended size of 32x32.
The supported formats are SVG (recommended), PNG and JPG.
Transparency is supported, but please take into account that your icon should work both in the light theme and the dark theme.
In the legacy Symphony Client, it was possible to use a rectangular sprite icon (32x16), where the first 16 pixels were used for the light theme and the last 16 pixels for the dark theme. This is not supported on Client 2.0.
SYMPHONY.remote.hello()
The SYMPHONY.remote.hello()
method should be used to initialize the connection to the Client Extension API from your application controller and views.
Returns a promise that will be fulfilled when the introduction is complete. If there is a problem, the promise will be rejected. The promise returns an object containing the user's Symphony client theme name, font size, and any associated classes, including those for theme name or size, as well for condensed and contrast modes.
Returns
Type
Description
themeV2
Object
An object containing the user's Symphony client theme settings
locale
String
The language selected by the user in his settings. Possible values are "en-US" | "fr-FR" | "ja-JP".
You should style your application according to the user's theme by applying the theme and font size classes to the <body>
tag of any application modules.
If a user changes his theme, a themeChangeV2 event is fired from the ui service, which will pass a themeV2
object with the new values. You should use a service to listen to this event and update the classes on the application module <body>
.
Last updated