@tripetto/block-calculator
Version:
Calculator block for Tripetto.
12 lines (11 loc) • 481 B
TypeScript
import { EditorOrchestrator, Forms, Slots } from "@tripetto/builder";
import { Operation } from "../operation";
export declare const variableControl: (
operation: Operation,
editor: EditorOrchestrator<Operation>,
property?: keyof Operation,
mode?: "form" | "inline",
autoFocus?: boolean,
filter?: (slot: Slots.Slot) => boolean,
onChange?: ((value: string) => void) | undefined
) => [Forms.Form | Forms.Dropdown<string>, number, Forms.Dropdown<string>];