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|InstanceType[]| | ||
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:Field
Returns:boolean