API Reference vce-languages-editor
Required Child Components
vce-languages-editor
must have the following child components:
-
vce-languages-list
This child component must have a `vce-languages-list` attribute
-
vce-languages-dialog
This child component must have a `vce-languages-dialog` attribute
-
vce-languages-change-master-dialog
This child component must have a `vce-languages-change-master-dialog` attribute
HTML Attributes API
Name |
Description |
Type |
Required |
Default value |
localized-contents |
Object of language contents. |
object |
|
[] |
master |
IETF code of the master language |
string |
|
'' |
selected |
IETF code of the currently selected language |
string |
|
'' |
translations |
Set the translation |
LanguagesTranslations |
|
'' |
LanguagesTranslations
{
deleteConfirm: {
title: string;
message: string;
applyButton: string;
cancelButton: string;
};
}
Method
Name |
Description |
Parameter |
changeMaster |
Opens Change Master dialog |
|
Events
Event |
Description |
Returns |
analytics |
Called on confirmed delete or copy |
{
detail: { eventAction: string, eventLabel:string }
bubbles: true
}
|
update |
Fires on update |
{ detail: localizedContents }
|
update-selected |
Fires on selection |
{ detail: selected }
|
update-master |
Fires on update |
{ detail: master }
|