New to Kendo UI for Angular? Start 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. | ||||||
| ||||||
|