UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

24 lines 616 B
import { Icon } from './Icon.js'; import { Button } from './Button.js'; import { filterIDFromProperties } from '../helpers/filterIDFromProperties.js'; /** * A {@link Button} with an {@link Icon}. * * @category Widget */ export class IconButton extends Button { constructor(image, properties) { super(new Icon(image, filterIDFromProperties(properties)), properties); } } IconButton.autoXML = { name: 'icon-button', inputConfig: [ { mode: 'value', name: 'image', validator: 'image-source' } ] }; //# sourceMappingURL=IconButton.js.map