@textbus/editor
Version:
Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.
24 lines (23 loc) • 697 B
TypeScript
import { Keymap } from '@textbus/core';
export interface UIDropdownConfig {
/** 快捷键配置 */
keymap?: Keymap;
/** 给当前控件添加一组 css class */
classes?: string[];
/** 给当前控件添加一组 icon css class */
iconClasses?: string[];
/** 当鼠标放在控件上的提示文字 */
tooltip?: string;
/** 设置控件显示的文字 */
label?: string;
menuView: HTMLElement;
stickyElement: HTMLElement;
}
export interface UIDropdown {
elementRef: HTMLElement;
disabled: boolean;
highlight: boolean;
hide(): void;
destroy(): void;
}
export declare function createDropdown(config: UIDropdownConfig): UIDropdown;