Class CfnComponent.ComponentDataConfigurationProperty
The ComponentDataConfiguration
property specifies the configuration for binding a component's properties to data.
Inheritance
Namespace: Amazon.CDK.AWS.AmplifyUIBuilder
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ComponentDataConfigurationProperty : Object, CfnComponent.IComponentDataConfigurationProperty
Syntax (vb)
Public Class ComponentDataConfigurationProperty
Inherits Object
Implements CfnComponent.IComponentDataConfigurationProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AmplifyUIBuilder;
PredicateProperty predicateProperty_;
var componentDataConfigurationProperty = new ComponentDataConfigurationProperty {
Model = "model",
// the properties below are optional
Identifiers = new [] { "identifiers" },
Predicate = new PredicateProperty {
And = new [] { predicateProperty_ },
Field = "field",
Operand = "operand",
OperandType = "operandType",
Operator = "operator",
Or = new [] { predicateProperty_ }
},
Sort = new [] { new SortPropertyProperty {
Direction = "direction",
Field = "field"
} }
};
Synopsis
Constructors
ComponentDataConfigurationProperty() |
Properties
Identifiers | A list of IDs to use to bind data to a component. |
Model | The name of the data model to use to bind data to a component. |
Predicate | Represents the conditional logic to use when binding data to a component. |
Sort | Describes how to sort the component's properties. |
Constructors
ComponentDataConfigurationProperty()
public ComponentDataConfigurationProperty()
Properties
Identifiers
A list of IDs to use to bind data to a component.
public string[] Identifiers { get; set; }
Property Value
System.String[]
Remarks
Use this property to bind specifically chosen data, rather than data retrieved from a query.
Model
The name of the data model to use to bind data to a component.
public string Model { get; set; }
Property Value
System.String
Remarks
Predicate
Represents the conditional logic to use when binding data to a component.
public object Predicate { get; set; }
Property Value
System.Object
Remarks
Use this property to retrieve only a subset of the data in a collection.
Sort
Describes how to sort the component's properties.
public object Sort { get; set; }
Property Value
System.Object