Components
Widgets are based on a layout and this layout is built with components.
Components are any part of a widget you can customize. They are defined and created as a consequence of a widget creation.
The scope of components created is defined by template_id
. You can find a summary of combinations below.
sections
✅
❌
❌
❌
✅
✅
❌
✅
✅
sections_and_save
✅
❌
❌
❌
✅
✅
✅
✅
✅
full_preference_center
✅
❌
✅
✅
✅
✅
✅
✅
✅
dsar_form
❌
✅
❌
❌
❌
❌
❌
❌
❌
Components available are following:
Please be aware of the following exceptions.
auth component is not a
layout-component
and is editable at widget level.In addition of
options
, sectionslayout-component
provides a simplified configuration withtheme
property.Privacy request widgets benefit from design and UI content edition only in
layout-component
dsar_form. User rights content is not editable.
Edit a component
To edit a layout-component, send a PATCH request on /widgets/layout-components/{id}
.
Be careful when you are editing the options
property. This is a JSONB and by design, you need to fill in every property already added every time you edit this object.
Edit multiple components
To edit multiple layout-components, send a PATCH request on /widgets/layout-components
.
Last updated