Custom elements help you to enhance the Kontent.ai experience with the tools you need to integrate with external parties and add features to your solution. Here we explore how to access the context of your custom element's content item.
In the video below, I'll show you how to access the context of a custom element and what it contains. This information is pivotal to some of the customisations that you might want to add to your Kontent.ai solution.
As with the previous videos, this custom element wouldn't add any value to an actual project but is just intended to explore how to access the content item context.
The source code for this (and some other custom elements) can be found on my GitHub: https://github.com/mattnield/kontent-custom-element-samples