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