Presto
GitHub
Getting Started
Packages
View Model
BaseViewModel
isViewModelClass
isViewModelInstance
viewModelFactory
Async Choices
AsyncChoices
AsyncChoicesInterface
useAsyncChoices
Caching
useViewModelCache
ViewModelCache
Errors
InvalidFieldError
MissingFieldsError
Fields
BooleanField
CharField
DateField
DateRangeField
DateTimeField
DateTimeRangeField
DecimalField
DecimalRangeField
EmailField
Field
FileField
FloatField
FloatRangeField
ImageField
IntegerField
IntegerRangeField
JsonField
ListField
ManyRelatedViewModelField
NumberField
PasswordField
RangeField
RelatedViewModelField
TextField
TimeField
URLField
Utils
normalizeFields
ViewModelFieldPaths
Final Form
REST
Routing
UI
UI ANTD
Util
On this page
API
Methods
isSubset
Properties
fieldPaths
flattenedPath
key
modelClass
nonRelationFieldNames
relations
ViewModelFieldPaths
Source
import { ViewModelFieldPaths } from "@prestojs/viewmodel";
ViewModelFieldPaths
<
T
>
API
Constructor
new ViewModelFieldPaths
(
modelClass
,
flattenedPath
)
Source
Arguments:
Argument
Type
Description
*
modelClass
T
*
flattenedPath
string
[]
Methods
isSubset
(
paths
,
?ignoreNested
)
Source
Arguments:
Argument
Type
Description
*
paths
ViewModelFieldPaths
ignoreNested
boolean
Returns:
boolean
Properties
fieldPaths
Source
string|string[]
[]
flattenedPath
Source
string
[]
key
Source
string
modelClass
Source
T
nonRelationFieldNames
Source
string
[]
relations
Source
Record