@paperbits/common
Version:
Paperbits common components.
31 lines (26 loc) • 576 B
text/typescript
import { IComponent } from "./IComponent";
/**
* Tool button configuration.
*/
export interface ToolButton {
/**
* Icon CSS class, e.g. `widget-icon widget-icon-form`.
*/
iconClass: string;
/**
* Title.
*/
title: string;
/**
* Tooltip that appears on mouse hovering or getting focus.
*/
tooltip?: string | (() => string);
/**
* Activation handler.
*/
onActivate?: () => void;
/**
* A component shown in the balloon view.
*/
component?: IComponent;
}