lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
17 lines (16 loc) • 703 B
TypeScript
import { Label } from './Label.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';
/**
* A {@link FilledButton} with a {@link Label}. 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 TextButton extends FilledButton<Label> {
static autoXML: WidgetAutoXML;
constructor(text: string, properties?: Readonly<LabelProperties & ClickableWidgetProperties>);
}