Skip to content

@fabwcie/free-drawing / utils/dom / createButton

Function: createButton() ​

createButton(...classNames): HTMLButtonElement

Defined in: packages/free-drawing/src/utils/dom.ts:32

Button with given classes, type="button": default type submit would submit a form of the page

Parameters ​

classNames ​

...string[]

CSS classes of the button

Returns ​

HTMLButtonElement

new button, not added to the page