Search
Preparing search index...
The search index is not available
formulr - v0.3.1
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
ModelRef
Class ModelRef<Value, Parent, Model>
Type parameters
Value
Parent
:
IModel
<
any
>
Model
:
IModel
<
Value
>
Hierarchy
ModelRef
Implements
IModel
<
Value
>
Index
Constructors
constructor
Properties
[REF_
ID]
_owner
initial
Value
model$
patched
Value
Accessors
error
form
owner
validators
Methods
clear
dirty
dispose
get
Model
get
Parent
get
Raw
Value
get
Submit
Value
initialize
patch
Value
pristine
reset
set
Model
touched
valid
validate
Constructors
constructor
new
Model
Ref
(
current
?:
Model
|
null
, initialValue
?:
Maybe
<
Value
>
, owner
:
Parent
|
null
)
:
ModelRef
internal
Parameters
Default value
current:
Model
|
null
= null
Default value
initialValue:
Maybe
<
Value
>
= None()
owner:
Parent
|
null
Returns
ModelRef
Properties
[REF_
ID]
[REF_
ID]
:
boolean
internal
Private
_owner
_owner
:
IModel
<
any
>
|
null
= null
initial
Value
initial
Value
:
Maybe
<
Value
>
model$
model$
:
BehaviorSubject
<
Model
|
null
>
patched
Value
patched
Value
:
Maybe
<
Value
>
= None()
internal
Accessors
error
get
error
(
)
:
undefined
|
null
|
IValidateResult
<
Value
>
set
error
(
error
:
IMaybeError
<
Value
>
)
:
void
Returns
undefined
|
null
|
IValidateResult
<
Value
>
Parameters
error:
IMaybeError
<
Value
>
Returns
void
form
get
form
(
)
:
undefined
|
null
|
FormModel
<
any
>
Returns
undefined
|
null
|
FormModel
<
any
>
owner
get
owner
(
)
:
IModel
<
any
>
|
null
set
owner
(
owner
:
IModel
<
any
>
|
null
)
:
void
Returns
IModel
<
any
>
|
null
Parameters
owner:
IModel
<
any
>
|
null
Returns
void
validators
get
validators
(
)
:
IValidators
<
Value
>
set
validators
(
validators
:
IValidators
<
Value
>
)
:
void
Returns
IValidators
<
Value
>
Parameters
validators:
IValidators
<
Value
>
Returns
void
Methods
clear
clear
(
)
:
void
Returns
void
dirty
dirty
(
)
:
boolean
Returns
boolean
dispose
dispose
(
)
:
void
Returns
void
get
Model
get
Model
(
)
:
null
|
Model
Returns
null
|
Model
get
Parent
get
Parent
(
)
:
null
|
IModel
<
any
>
Returns
null
|
IModel
<
any
>
get
Raw
Value
get
Raw
Value
(
)
:
Value
|
null
Returns
Value
|
null
get
Submit
Value
get
Submit
Value
(
)
:
void
Returns
void
initialize
initialize
(
value
:
Value
)
:
void
Parameters
value:
Value
Returns
void
patch
Value
patch
Value
(
value
:
Value
)
:
void
Parameters
value:
Value
Returns
void
pristine
pristine
(
)
:
boolean
Returns
boolean
reset
reset
(
)
:
void
Returns
void
set
Model
set
Model
(
model
:
Model
|
null
)
:
void
Parameters
model:
Model
|
null
Returns
void
touched
touched
(
)
:
boolean
Returns
boolean
valid
valid
(
)
:
boolean
Returns
boolean
validate
validate
(
option
?:
ValidateOption
)
:
Promise
<
void
>
Parameters
Default value
option:
ValidateOption
= ValidateOption.Default
Returns
Promise
<
void
>
Globals
Model
Ref
constructor
[REF_
ID]
_owner
initial
Value
model$
patched
Value
error
form
owner
validators
clear
dirty
dispose
get
Model
get
Parent
get
Raw
Value
get
Submit
Value
initialize
patch
Value
pristine
reset
set
Model
touched
valid
validate
Generated using
TypeDoc