@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
38 lines (37 loc) • 1.21 kB
TypeScript
/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
/**
* @module ai/aiquickactions/ui/balloon/aiactionsballoontoolbarview
*/
import type { Locale } from '@ckeditor/ckeditor5-utils';
import { ToolbarView, ButtonView } from '@ckeditor/ckeditor5-ui';
/**
* A class representing the toolbar view of the AI balloon.
*/
export declare class AIActionsBalloonToolbarView extends ToolbarView {
/**
* Button that is used to apply the suggestion.
*/
applyButton?: ButtonView;
/**
* Button that is used to insert the suggestion.
*/
suggestButton?: ButtonView;
/**
* Observable property that indicates whether the toolbar buttons are enabled or not.
*/
isEnabled: boolean;
/**
* @inheritDoc
*/
constructor(locale: Locale, showApplyButton?: boolean, showSuggestButton?: boolean);
/**
* Toggles the visibility of the apply and suggest buttons.
*/
setButtonsVisibility({ showApplyButton, showSuggestButton }: {
showApplyButton: boolean;
showSuggestButton: boolean;
}): void;
}