UNPKG

@textbus/editor

Version:

Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.

27 lines (26 loc) 666 B
import { Keymap } from '@textbus/core'; export interface UISelectConfig { stickyElement: HTMLElement; options: UISelectOption[]; classes?: string[]; iconClasses?: string[]; tooltip?: string; mini?: boolean; onSelected(value: any): any; } export interface UISelectOption { value: any; label: string; classes?: string[]; iconClasses?: string[]; default?: boolean; keymap?: Keymap; } export interface UISelect { elementRef: HTMLElement; disabled: boolean; highlight: boolean; setLabel(text: string): void; destroy(): void; } export declare function createSelect(config: UISelectConfig): UISelect;