Module Values.ComponentProperty

Describes the configuration for all of a component's properties. Use ComponentProperty to specify the values to render or bind by default.

Sourcetype nonrec t = {
  1. value : String_.t option;
    (*

    The value to assign to the component property.

    *)
  2. bindingProperties : ComponentPropertyBindingProperties.t option;
    (*

    The information to bind the component property to data at runtime.

    *)
  3. collectionBindingProperties : ComponentPropertyBindingProperties.t option;
    (*

    The information to bind the component property to data at runtime. Use this for collection components.

    *)
  4. defaultValue : String_.t option;
    (*

    The default value to assign to the component property.

    *)
  5. model : String_.t option;
    (*

    The data model to use to assign a value to the component property.

    *)
  6. bindings : FormBindings.t option;
    (*

    The information to bind the component property to form data.

    *)
  7. event : String_.t option;
    (*

    An event that occurs in your app. Use this for workflow data binding.

    *)
  8. userAttribute : String_.t option;
    (*

    An authenticated user attribute to use to assign a value to the component property.

    *)
  9. concat : ComponentPropertyList.t option;
    (*

    A list of component properties to concatenate to create the value to assign to this component property.

    *)
  10. condition : ComponentConditionProperty.t option;
    (*

    The conditional expression to use to assign a value to the component property.

    *)
  11. configured : Boolean.t option;
    (*

    Specifies whether the user configured the property in Amplify Studio after importing it.

    *)
  12. type_ : String_.t option;
    (*

    The component type.

    *)
  13. importedValue : String_.t option;
    (*

    The default value assigned to the property when the component is imported into an app.

    *)
  14. componentName : String_.t option;
    (*

    The name of the component that is affected by an event.

    *)
  15. property : String_.t option;
    (*

    The name of the component's property that is affected by an event.

    *)
}
Sourceval make : ?value:String_.t -> ?bindingProperties:ComponentPropertyBindingProperties.t -> ?collectionBindingProperties:ComponentPropertyBindingProperties.t -> ?defaultValue:String_.t -> ?model:String_.t -> ?bindings:FormBindings.t -> ?event:String_.t -> ?userAttribute:String_.t -> ?concat:ComponentPropertyList.t -> ?condition:ComponentConditionProperty.t -> ?configured:Boolean.t -> ?type_:String_.t -> ?importedValue:String_.t -> ?componentName:String_.t -> ?property:String_.t -> unit -> t
Sourceval to_value : t -> Awso.Botodata.value
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t