UNPKG

@eva-ics/webengine-react

Version:

React components for EVA ICS HMI Web Engine

56 lines (55 loc) 2.01 kB
import { Eva, ActionResult, EvaError } from "@eva-ics/webengine"; import { CanvasPosition } from "./common"; declare enum ControlButtonKind { Toggle = "toggle", Value = "value", Run = "run" } interface ControlButtonDisplay { oid: string; params?: object; busy?: string; label?: string; kind?: ControlButtonKind; input_size?: number; position?: CanvasPosition; css_class?: string; } declare const ControlBlock: ({ buttons, title, engine, on_success, on_fail }: { buttons: Array<ControlButtonDisplay>; title?: string; engine?: Eva; on_success?: (result: ActionResult) => void; on_fail?: (err: EvaError) => void; }) => import("react/jsx-runtime").JSX.Element; declare const ControlButtonToggle: ({ oid, label, css_class, engine, on_success, on_fail, disabled_actions }: { oid: string; label?: string; css_class?: string; engine?: Eva; on_success?: (result: ActionResult) => void; on_fail?: (err: EvaError) => void; disabled_actions?: boolean; }) => import("react/jsx-runtime").JSX.Element; declare const ControlButtonValue: ({ oid, label, css_class, input_size, engine, on_success, on_fail, disabled_actions }: { oid: string; label?: string; css_class?: string; input_size?: number; engine?: Eva; on_success?: (result: ActionResult) => void; on_fail?: (err: EvaError) => void; disabled_actions?: boolean; }) => import("react/jsx-runtime").JSX.Element; declare const ControlButtonRun: ({ oid, params, label, busy, css_class, engine, on_success, on_fail, disabled_actions }: { oid: string; params?: object; label?: string; busy?: string; css_class?: string; engine?: Eva; on_success?: (result: ActionResult) => void; on_fail?: (err: EvaError) => void; disabled_actions?: boolean; }) => import("react/jsx-runtime").JSX.Element; export { ControlButtonKind, ControlButtonDisplay, ControlBlock, ControlButtonToggle, ControlButtonValue, ControlButtonRun };