UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

18 lines (17 loc) 799 B
import { LiveLabel } from './LiveLabel.js'; import { FilledButton } from './FilledButton.js'; import type { WidgetAutoXML } from '../xml/WidgetAutoXML.js'; import type { ClickableWidgetProperties } from './ClickableWidgetProperties.js'; import type { LabelProperties } from './BaseLabel.js'; import type { Observable } from '../state/Observable.js'; /** * A {@link FilledButton} with a {@link LiveLabel}. Alignment is forced to be * horizontally centered and vertically stretching. Text-wrapping is disabled so * that text is centered properly. * * @category Widget */ export declare class LiveTextButton extends FilledButton<LiveLabel> { static autoXML: WidgetAutoXML; constructor(textSource: Observable<string>, properties?: Readonly<LabelProperties & ClickableWidgetProperties>); }