The plugin component Custom Fields allows to display custom information on datasets in the right panel. The GDPR plugin uses this component.
As of today, plugins do not really allow custom HTML/JS (or it is very hacky) so you should use the backend (for example with macros) to update the values of the custom fields.
I hope this helps.
Jeremy, Product Manager at Dataiku