UNPKG

@eva-ics/webengine-react

Version:

React components for EVA ICS HMI Web Engine

43 lines (42 loc) 1.5 kB
import { Eva, ItemState } from "@eva-ics/webengine"; import { CanvasPosition } from "./common"; import { CSSProperties } from "react"; interface ItemValueDisplay { oid?: string; formula?: string; state?: ItemState; label?: string; units?: string; className?: string; format_with?: (value: any) => any; set_color_with?: (value: any) => string | any; set_class_name_with?: (value: any) => string | any; digits?: number; threshold?: Array<ItemValueThreshold>; position?: CanvasPosition; css_class?: string; } interface ItemValueThreshold { value: number; class: string; } declare const ItemValueTable: ({ items, title, engine }: { items: Array<ItemValueDisplay>; title?: string; engine?: Eva; }) => import("react/jsx-runtime").JSX.Element; declare const ItemValue: ({ oid, formula, state, digits, units, className, threshold, format_with, set_color_with, set_class_name_with, set_style_with, engine }: { oid?: string; formula?: string; state?: ItemState; digits?: number; units?: string; className?: string; threshold?: Array<ItemValueThreshold>; format_with?: (value: any) => any; set_color_with?: (value: any) => string | undefined; set_class_name_with?: (value: any) => string | undefined; set_style_with?: (value: any) => CSSProperties; engine?: Eva; }) => import("react/jsx-runtime").JSX.Element; export { ItemValue, ItemValueDisplay, ItemValueThreshold, ItemValueTable };