Matterway
    Preparing search index...

    Function showHighlight

    • Displays a highlight on the specified elements and shows a form with the provided options.

      Parameters

      • ctx: Context

        The context in which the highlight and form should be displayed.

      • options: ShowHighlightOptions

        The options for displaying the highlight and form.

        • selectors

          The CSS selectors of the elements to highlight.

        • color

          The color of the highlight.

        • buttons

          The buttons to display on the form.

        • title

          The title of the form.

        • description

          The description of the form.

        • text

          The text to display in the user-fill field.

      Returns Promise<string>

      • A promise that resolves to the button that was clicked.
      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);