UNPKG

js-draw

Version:

Draw pictures using a pen, touchscreen, or mouse! JS-draw is a drawing library for JavaScript and TypeScript.

18 lines (17 loc) 557 B
import { ReactiveValue } from '../../../util/ReactiveValue'; import { IconElemType } from '../../IconProvider'; interface Button { icon: () => IconElemType; label: string; onClick: () => void; onCreated?: (button: HTMLElement) => void; enabled?: ReactiveValue<boolean>; } /** * Creates HTML `button` elements from `buttonSpecs` and displays them in a * grid with `columnCount` columns. */ declare const makeButtonGrid: (buttonSpecs: Button[], columnCount: number) => { container: HTMLDivElement; }; export default makeButtonGrid;