UNPKG

@selenite/graph-editor

Version:

A graph editor for visual programming, based on rete and svelte.

11 lines (10 loc) 279 B
import { Control } from '../control.svelte'; export class ButtonControl extends Control { onClick = $state(); label = $state(); constructor(params = {}) { super({ ...params }); this.label = params.label; this.onClick = params.onClick; } }