BaseViewModel
Sourceimport { BaseViewModel } from "@prestojs/viewmodel";
BaseViewModel<FieldMappingType,PkFieldType,AssignedFieldNames = string>
Constructor
Params:
| Parameter | Type | Description | |
|---|---|---|---|
| * | data | mapped |
Methods
Params:
| Parameter | Type | Description | |
|---|---|---|---|
| fieldNames | (Extract|ValueOf)[]|CloneFieldNames[] |
Returns:ViewModelInterface
Params:
| Parameter | Type | Description | |
|---|---|---|---|
| * | records | ViewModelInterface[] |
Returns:(Extract|ValueOf)[]
Properties
_f
SourceStatic Methods
Params:
| Parameter | Type | Description | |
|---|---|---|---|
| * | newFields | T | |
| newOptions | Partial |
Returns:ViewModelConstructor