import { DropDownButton, ItemModel } from '@syncfusion/ej2-splitbuttons'; import { Ribbon, itemProps } from '../base/index'; import { RibbonDropDownSettingsModel, RibbonItemModel } from '../models/index'; /** * Defines the items of Ribbon. */ export declare class RibbonDropDown { private parent; constructor(parent: Ribbon); protected getModuleName(): string; protected destroy(): void; private itemIndex; private enableRtl; /** * Creates DropDown. * * @param {RibbonItemModel} item - Gets the ribbon item model. * @param {HTMLElement} itemEle - Gets the ribbon item element. * @returns {void} * @hidden */ createDropDown(item: RibbonItemModel, itemEle: HTMLElement): void; /** * Adds the additional event handlers as the item moved into overflow popup. * * @param {RibbonItemModel} item - Gets the ribbon item model. * @param {HTMLElement} itemEle - Gets the ribbon item element. * @param {DropDownButton} overflowButton - Gets the overflow button. * @returns {void} * @hidden */ addOverFlowEvents(item: RibbonItemModel, itemEle: HTMLElement, overflowButton: DropDownButton): void; /** * Removes the additional event handlers as the item moved from overflow popup. * * @param {RibbonItemModel} item - Gets the ribbon item model. * @param {HTMLElement} itemEle - Gets the ribbon item element. * @returns {void} * @hidden */ removeOverFlowEvents(item: RibbonItemModel, itemEle: HTMLElement): void; /** * Creates Overflow DropDown. * * @param {string} id - Gets the ID of the dropdown item. * @param {string} name - Gets the name of the dropdown item. * @param {string} iconCss - Gets the icon of the dropdown item. * @param {HTMLElement} groupEle - Gets the overflow group element. * @param {HTMLElement} overflowEle - Gets the overflow element. * @returns {void} * @hidden */ createOverFlowDropDown(id: string, name: string, iconCss: string, groupEle: HTMLElement, overflowEle: HTMLElement, enableRtl?: boolean): DropDownButton; private keyActionHandler; private handleNavigation; private focusLauncherIcon; private updateItemIndex; /** * Removes Overflow DropDown. * * @param {HTMLElement} dropdownElement - Gets the ribbon DropDown element. * @returns {void} * @hidden */ removeOverFlowDropDown(dropdownElement: HTMLElement): void; /** * Gets DropDown item element. * * @param {HTMLElement} dropdownElement - Gets the ribbon DropDown element. * @param {string} id - Gets the ID of ribbon DropDown element. * @returns {HTMLElement} - Returns the DropDown item element. * @hidden */ getDDBItemElement(dropdownElement: HTMLElement, id: string): HTMLElement; /** * Gets Overflow DropDown Popup. * * @param {itemProps} itemProp - Gets the property of ribbon item. * @param {HTMLElement} contentEle - Gets the content element. * @returns {HTMLElement} - Returns the Overflow DropDown Popup. * @hidden */ getOverflowDropDownPopup(itemProp: itemProps, contentEle: HTMLElement): HTMLElement; private getDropDownObj; /** * Adds a new item to the menu. By default, new item appends to * the list as the last item, but you can insert based on the text parameter. * * @param {string} controlId - Gets the control ID. * @param {ItemModel[]} Items - Gets the DropDown items. * @param {string} text - Gets the text of the dropdown item where the new item needs to be inserted. * @returns {void} */ addItems(controlId: string, Items: ItemModel[], text?: string): void; /** * Removes the items from the menu. * * @param {string} controlId - Gets the control ID. * @param {string[]} Items - * @param {string} isUniqueId - * @returns {void} */ removeItems(controlId: string, Items: string[], isUniqueId?: boolean): void; /** * To open/close DropDownButton popup based on current state of the DropDownButton. * * @param {string} controlId - Gets the control ID. * @returns {void} */ toggle(controlId: string): void; /** * Updates the dropdown. * * @param {RibbonDropDownSettingsModel} prop - Gets the dropdown property. * @param {string} id - Gets the ID of dropdown. * @returns {void} */ updateDropDown(prop: RibbonDropDownSettingsModel, id: string): void; /** * Updated DropDown size * * @param {HTMLElement} element - Gets the dropdown element. * @param {RibbonItemModel} item - Gets the ribbon item model. * @returns {void} * @hidden */ updateDropDownSize(element: HTMLElement, item: RibbonItemModel): void; }