mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-22 21:38:52 +00:00
refactor(ext-api): rename widgetCreated → created in WidgetExtensionOptions
Remove redundant "widget" prefix since we're already in widget context. Addresses review discussion item #5 from design-review-12142.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -130,7 +130,7 @@ export interface ExtensionOptions {
|
||||
* name: 'my-org.color-picker',
|
||||
* type: 'COLOR_PICKER',
|
||||
*
|
||||
* widgetCreated(widget, node) {
|
||||
* created(widget, node) {
|
||||
* return {
|
||||
* render(container) { /* mount color picker DOM *\/ },
|
||||
* destroy() { /* cleanup *\/ }
|
||||
@@ -151,7 +151,7 @@ export interface WidgetExtensionOptions {
|
||||
*
|
||||
* @stability experimental
|
||||
*/
|
||||
widgetCreated?(
|
||||
created?(
|
||||
widget: WidgetHandle,
|
||||
parentNode: NodeHandle | null
|
||||
): { render(container: HTMLElement): void; destroy?(): void } | void
|
||||
|
||||
Reference in New Issue
Block a user