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

InlineAIPromptService

Provides a service for opening Inline AI Prompt components dynamically.

ts
import { InlineAIPromptService } from '@progress/kendo-angular-conversational-ui';

constructor(private inlineAIPromptService: InlineAIPromptService) {}

openPrompt(anchor: ElementRef) {
  const promptRef = this.inlineAIPromptService.open({
    anchor: anchor,
    placeholder: 'Enter your prompt...'
  });
}

Constructors

InlineAIPromptService

(popupService: PopupService)

Parameters

popupService

PopupService

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
ConstructorsInlineAIPromptServiceMethods
Not finding the help you need?
Contact Support