Skip to main content

Using Marketplace Data

Most components leverage data provided by the "Page Objects". You can access the data directly in your component. Use the data viewer (in the toolkit toolbar) to find the content that you want to pass to your component.

The components expose a public interface where you can use the property marketplaceData to list the data to provide to the component. The marketplace data contains the default strings provided.

Example:

Resources.schema = () => ({
name: 'ProductResources',
marketplaceData: {
header: 'application.resources.i18n.Resources',
documents: 'application.resources.public.documents',
videos: 'application.resources.public.videos'
}
});

Was this page helpful?