Language dialog web component <cq-language-dialog>
. This creates a dialog that the user can use to change the language.
The actual language choices are obtained from CIQ.I18N.languages. Choosing a different language causes the entire UI to be translated through use of the CIQ.I18N.setLanguage method.
- Since:
-
- 4.0.0 New component added added.
- 4.1.0 Now it calls CIQ.I18N.localize instead of CIQ.I18N.setLocale.
Example
<cq-dialog>
<cq-language-dialog></cq-language-dialog>
</cq-dialog>
Methods
-
close()
-
Closes dialog box.
- Since:
-
4.0.0
-
open( [params])
-
Opens the nearest WebComponents.cq-dialog to display your dialog.
Parameters:
Name Type Argument Description params
Object <optional>
Contains the chart context.
Properties
Name Type Argument Description context
CIQ.UI.Context <optional>
A context to set for the dialog. See CIQ.UI.DialogContentTag#setContext.
- Since:
-
4.0.0