New to Kendo UI for AngularStart a free 30-day trial

InlineAIPromptService

Provides a service for opening and configuring the Inline AI Prompt component dynamically.

ts
export class DemoComponent {
  @ViewChild('anchor', { read: ElementRef }) anchor: ElementRef;
  constructor(private promptService: InlineAIPromptService) {}

  open(): void {
    this.promptService.open({
      popupSettings: { anchor: this.anchor },
      placeholder: 'Enter your prompt...'
    });
  }
}

Methods

open

Opens an Inline AI Prompt component in a popup. The popup appears near the specified anchor element or at the provided offset coordinates.

Parameters

options

InlineAIPromptSettings

The options for the InlineAIPromptComponent.

Returns

PopupRef

A reference to the popup.

In this article
Methods
Not finding the help you need?
Contact Support