import { Ribbon } from '../base/index'; import { RibbonButtonSettingsModel, RibbonItemModel } from '../models/index'; import { DropDownButton } from '@syncfusion/ej2-splitbuttons'; /** * Defines the items of Ribbon. */ export declare class RibbonButton { private parent; constructor(parent: Ribbon); protected getModuleName(): string; protected destroy(): void; /** * Creates button. * * @param {RibbonItemModel} item - Gets the ribbon item model. * @param {HTMLElement} itemEle - Gets the ribbon item element. * @returns {void} * @hidden */ createButton(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; /** * Triggers the click action on the button. * * @param {string} controlId - Gets the control ID. * @returns {void} */ click(controlId: string): void; /** * Updates the button properties. * * @param {RibbonButtonSettingsModel} prop - Gets the button property. * @param {string} id - Gets the ID of button item. * @returns {void} */ updateButton(prop: RibbonButtonSettingsModel, id: string): void; /** * Updates the button size. * * @param {HTMLElement} element - Gets the button element. * @param {RibbonItemModel} item - Gets the ribbon item. * @returns {void} * @hidden */ updateButtonSize(element: HTMLElement, item: RibbonItemModel): void; }