- Testing Candu components via Cypress, Selenium or other integration tests.
- Verifying if a component has rendered.
- Calculate to Fist Paint for a given Candu component.
- Query what components are active on a given Candu page
Html
id
The Id is a UUID that’s randomly generated for internal state keeping purposes. The ID is not stable, and we do not recommend using this id.candu-content-id
Acontent-id is an identifier used to reference Content. They are unique across all of Candu. You can find a content id in the editor URL: /editor/<contentId>/*. A content can be injected twice in a given page, so the data attribute may not be unique.
candu-slug
Theslug is a human readable identifier used for a given Content. A content can be injected twice in a given page, so the data attribute may not be unique.
candu-placement-id
Theplacement-id is an identifier used to reference which placement is being used for a given piece of content. Placements are set in the Content/Placements tab. If a content is rendered programmatically using renderContent the placementId will be a non-stable randomly generated id.
candu-selector
The selector that is being targeted by a given placement.candu-selector-location
Where a Content is being placed in side the selector. Possible values areEnd, Start and Replace.