UNPKG

@ckeditor/ckeditor5-ui

Version:

The UI framework and standard UI library of CKEditor 5.

33 lines (32 loc) 1.1 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 */ import IconView from '../icon/iconview.js'; import ListItemButtonView from '../button/listitembuttonview.js'; import type { Locale } from '@ckeditor/ckeditor5-utils'; import '../../theme/components/menubar/menubarmenubutton.css'; /** * A menu {@link module:ui/menubar/menubarmenuview~MenuBarMenuView#buttonView} class. Buttons like this one * open both top-level bar menus as well as sub-menus. */ export default class MenuBarMenuButtonView extends ListItemButtonView { /** * An icon that displays an arrow to indicate a direction of the menu. */ readonly arrowView: IconView; /** * Creates an instance of the menu bar button view. * * @param locale The localization services instance. */ constructor(locale: Locale); /** * @inheritDoc */ render(): void; /** * Creates the {@link #arrowView} instance. */ private _createArrowView; }