Widget UI Schema
This document outlines the different schema settings you can use in your custom widget template. For a tutorial on creating widget templates, see Widgets Tutorial.
Within the schema property of the Create a Widget Template endpoint, settings are grouped into tabs and sections.
Tabs are a part of the Page Builder schema structure. The schema requires using a single root-level tab to contain all visible sections.
Sections render in the same order they are listed within a tab.
Sections are groups of related settings. Each section will have a title that the user can collapse. Section labels are optional but are not collapsible without a label.
Settings render in the same order they are listed within a section.
Arrays allow for building collections of elements within the widget. Array elements live at the top level of the schema. Each element in the array can contain an entire schema.
Elements in the list have settings defined by the array’s schema, which you can build using tabs, sections, and settings.
- Each element in the list can have tabs and sections included.
- The
defaultCountattribute is the number of elements that are displayed in the list by default. - Use the
thumbnailattribute to display an image stored at the specified attribute name. - Use the
entryLabelattribute to set a name for each element in the list.