Similar to extensions and widgets, an element requires a manifest file, called element.json, to define key properties. The contents of an element.json file look similar to the following:
{
"inline" : false,
"supportedWidgetType" : ["widget-type", "widget-type", ...],
"translations" : [
{
"language" : "en_EN",
"title" : "Title in English",
"description" : "Description in English"
},
{
"language" : "de_DE",
"title" : "Title in German",
"description" : "Description in German"
}
]
}The attributes available for element.json manifests are:
inline: A flag denoting whether the element should be inserted as aspan(inline=true) ordiv(inline=false) when it is added to a widget instance.supportedWidgetType: A list of widget-type names that determines the availability of the element when editing widgets on the Design tab. Either this property or theavailableToAllWidgetsproperty, described below, is required for stand-alone elements. Widget-specific elements do not require either property because they are, by definition, consumed only by their parent widget.availableToAllWidgets: Set this property totrueto allow a stand-alone element to be placed on all widget types; the element will appear in the Element library for all widgets. Omit this property altogether to restrict placement of the stand-alone element to the widget types defined in thesupportedWidgetTypeproperty.translations: An array that provides translations for both the element title and description. The title is displayed in the Element library panel that you use to add an element to its parent widget’s layout. The description is not displayed in the Oracle Commerce Cloud Service UI but can provide helpful information to a developer.The
translationsproperty has three sub-properties,language,nameanddescription. Thelanguageproperty can be either a two-letter language code (for example,en) or a two-letter language code and a two-letter country code with an underscore in between (for example,en_US).ISO 639-1defines the two-letter language codes.ISO 3166-1 alpha-2defines the two-letter country codes.

