UNPKG

@docsvision/webclient

Version:

Type definitions for DocsVision WebClient scripts and extensions.

21 lines (20 loc) 735 B
/// <reference types="react" /> import { FieldSpec } from '@docsvision/webclient/System/GetFieldName'; import { IEventArgs } from '@docsvision/webclient/System/IEventArgs'; import { SimpleEvent } from '@docsvision/webclient/System/SimpleEvent'; export declare class BooleanState { private component; fieldName: string; useSetState: boolean; postEventTrue: SimpleEvent<IEventArgs>; postEventFalse: SimpleEvent<IEventArgs>; onChange: (newValue: boolean) => void; constructor(component: React.Component, fieldName: FieldSpec<any, boolean>); get(): any; set(val: boolean): void; get value(): any; set value(val: any); toggle: () => void; setFalse: () => void; setTrue: () => void; }