ManyRelatedViewModelField
Sourceimport { ManyRelatedViewModelField } from "@prestojs/viewmodel";
ManyRelatedViewModelField<TargetViewModelT,SourceFieldNameT = string>
Constructor
Arguments:
Argument | Type | Description | |
---|---|---|---|
* | props An object with the properties below | ||
props.asyncChoices | AsyncChoicesInterface | ||
props.blank | boolean | ||
props.blankAsNull | boolean | ||
props.cache | ViewModelCache | ||
props.choices | |[SingleValueT, string][] | ||
props.defaultValue | null|ValueT| | ||
props.formatterProps | Record | ||
props.helpText | string | ||
props.label | string | ||
props.readOnly | boolean | ||
* | props.sourceFieldName | SourceFieldNameT | |
* | props.to | |TargetViewModelT | |
props.widgetProps | Record | ||
props.writeOnly | boolean |
Methods
Returns:{[fieldName: string]: any }
Returns:{[fieldName: string]: any }
Returns:string