Type addDOMWidget (#2705)

This commit is contained in:
bymyself
2025-02-24 08:32:43 -07:00
committed by GitHub
parent 97f9d654b6
commit 81102604f5
3 changed files with 18 additions and 6 deletions

View File

@@ -28,6 +28,12 @@ export interface DOMWidget<T extends HTMLElement, V extends object | string>
options: DOMWidgetOptions<T, V>
value: V
y?: number
/**
* @deprecated Legacy property used by some extensions for customtext
* (textarea) widgets. Use `element` instead as it provides the same
* functionality and works for all DOMWidget types.
*/
inputEl?: T
callback?: (value: V) => void
/**
* Draw the widget on the canvas.