UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

48 lines (47 loc) 1.27 kB
/** * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * @module ai/aitabs/tabs/tabbuttonview */ import { ButtonView } from 'ckeditor5/src/ui.js'; import { type ArrayOrItem, type Locale } from 'ckeditor5/src/utils.js'; import type { AI_TABS_POSITIONS } from './aitabsview.js'; import '../../../theme/aitabs/tabs/tabbuttonview.css'; /** * A button that toggles the visibility of a tab in the tabs view component. */ export declare class TabButtonView extends ButtonView { /** * The position of the tab button. * * @observable */ side: typeof AI_TABS_POSITIONS[number]; /** * @inheritDoc */ constructor(locale?: Locale, options?: TabButtonViewOptions); /** * Shows the tab button. */ show(): void; /** * Hides the tab button. */ hide(): void; } /** * The options for the `TabButtonView` class. */ export type TabButtonViewOptions = { /** * An additional CSS class added to the {@link #element}. */ class?: ArrayOrItem<string>; /** * The position of the tab button. */ side?: typeof AI_TABS_POSITIONS[number]; };