The context in which the highlight and form should be displayed.
The options for displaying the highlight and form.
The CSS selectors of the elements to highlight.
The color of the highlight.
The buttons to display on the form.
The title of the form.
The description of the form.
The text to display in the user-fill field.
const options = {
selectors: ['.highlight-element'],
color: '#ff0000',
buttons: [
{ text: 'OK', value: 'ok' },
{ text: 'Cancel', value: 'cancel' }
],
title: 'Message title',
description: 'Message description',
text: 'Your highlighted color'
};
const button = await showHighlight(ctx, options);
console.log('Button clicked:', button);
Displays a highlight on the specified elements and shows a form with the provided options.