Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ComponentConditionProperty

import type { ComponentConditionProperty } from "https://aws-api.deno.dev/v0.3/services/amplifyuibuilder.ts?docs=full";

Represents a conditional expression to set a component property. Use ComponentConditionProperty to set a property to different values conditionally, based on the value of another property.

interface ComponentConditionProperty {
else?: ComponentProperty | null;
field?: string | null;
operand?: string | null;
operator?: string | null;
property?: string | null;
then?: ComponentProperty | null;
}

§Properties

§

The value to assign to the property if the condition is not met.

§
field?: string | null
[src]

The name of a field. Specify this when the property is a data model.

§
operand?: string | null
[src]

The value of the property to evaluate.

§
operator?: string | null
[src]

The operator to use to perform the evaluation, such as eq to represent equals.

§
property?: string | null
[src]

The name of the conditional property.

§

The value to assign to the property if the condition is met.