Skip to content

CustomConditionalCtx

@tsed/schema-formio

Usage

typescript
import { CustomConditionalCtx } from "@tsed/schema-formio";

See /packages/third-parties/schema-formio/src/types/decorators/customConditional.ts.

Overview

ts
interface CustomConditionalCtx<Value = any, Data = any, Row = any> {
    form: FormioForm;
    submission: FormioSubmission<Data>;
    data: Data;
    row: Row;
    component: FormioComponent;
    instance: any;
    value: Value;
    moment: Moment;
    _: LoDashStatic;
    utils: typeof Utils;
    util: typeof Utils;
}

form

ts
form: FormioForm;

The complete submission object.

submission

ts
submission: FormioSubmission<Data>;

The complete submission object.

data

ts
data: Data;

The complete submission data object.

row

ts
row: Row;

Contextual "row" data, used within DataGrid, EditGrid, and Container components

component

ts
component: FormioComponent;

The current component JSON

instance

ts
instance: any;

The current component instance.

value

ts
value: Value;

The current value of the component.

moment

ts
moment: Moment;

The moment.js library for date manipulation.

_

ts
_: LoDashStatic;

An instance of Lodash.

utils

ts
utils: typeof Utils;

An instance of the FormioUtils object.

util

ts
util: typeof Utils;

An alias for "utils".

Released under the MIT License.