ExpressionResolverComponentProps

Interface

The ExpressionResolverComponent component props.

Properties

PropertyTypeNotes
ReactNode | ResolverRenderFunction

If one of children components' rendering depends on the resolved result, you can choose to use this render function.

Expressions that need to be resolved.

Whether or not the expression is resolved successfully, the function will be called.

{}

If included, it will use these records to resolve the expression. If not, it will use useDataSources to create the data source instances, then use these data sources to resolve the expression.

ImmutableArray<UseDataSource>

Widget's useDataSources , the data sources that the widget is using. If the data source of one expression part is not in the array, this part will not be resolved.

string

Id of the widget.

children

optional
Interface Property
children: ReactNode | ResolverRenderFunction

If one of children components' rendering depends on the resolved result, you can choose to use this render function.

expression

Interface Property
expression: IMExpression | IMExpressionMap

Expressions that need to be resolved.

onChange

optional
Interface Property
onChange: (resolvedResultsMultipleExpressionResolveResults | SingleExpressionResolveResult) => void

Whether or not the expression is resolved successfully, the function will be called.

Type declaration

records

optional
Interface Property
records: {}

If included, it will use these records to resolve the expression. If not, it will use useDataSources to create the data source instances, then use these data sources to resolve the expression.

Must pass in one of useDataSources and records .

Type declaration

    useDataSources

    optional
    Interface Property
    useDataSources: ImmutableArray<UseDataSource>

    Widget's useDataSources , the data sources that the widget is using. If the data source of one expression part is not in the array, this part will not be resolved.

    Must pass in one of useDataSources and records .

    widgetId

    Interface Property
    widgetId: string

    Id of the widget.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.