Preparing search index...
The search index is not available
Margarita form reference documentation
Margarita form reference documentation
@margarita-form/core
ControlsManager
Class ControlsManager<CONTROL>
Type Parameters
CONTROL
extends
MFC
=
MFC
Hierarchy (
view full
)
BaseManager
<
MFC
[]
>
ControlsManager
Index
Constructors
constructor
Properties
_value
control
initial
Value?
subscriptions
manager
Name
Accessors
array
changes
group
has
Controls
name
other
Changes
value
Methods
add
Control
add
Controls
after
Initialize
append
Control
append
Repeating
Control
append
Repeating
Controls
cleanup
create
Subscription
emit
Change
get
Control
get
Control
Index
move
Control
on
Cleanup
on
Initialize
prepare
rebuild
remove
Control
Constructors
constructor
new
Controls
Manager
<
CONTROL
>
(
control
)
:
ControlsManager
<
CONTROL
>
Type Parameters
CONTROL
extends
MFC
=
MFC
Parameters
control
:
CONTROL
Returns
ControlsManager
<
CONTROL
>
Properties
_value
_value
:
MFC
[]
= ...
control
control
:
CONTROL
Optional
initial
Value
initial
Value
?:
MFC
[]
subscriptions
subscriptions
:
Subscription
[]
= []
Static
manager
Name
manager
Name
:
keyof
Managers
= 'controls'
Accessors
array
get
array
(
)
:
MFCA
Returns
MFCA
changes
get
changes
(
)
:
Observable
<
VALUE
>
Returns
Observable
<
VALUE
>
group
get
group
(
)
:
MFCG
Returns
MFCG
has
Controls
get
hasControls
(
)
:
boolean
Returns
boolean
name
get
name
(
)
:
keyof
Managers
Returns
keyof
Managers
other
Changes
get
otherChanges
(
)
:
Observable
<
unknown
>
Returns
Observable
<
unknown
>
value
get
value
(
)
:
VALUE
Returns
VALUE
set
value
(
value
)
:
void
Parameters
value
:
VALUE
Returns
void
Methods
add
Control
add
Control
<
FIELD
>
(
field
,
resetControl
?
,
emit
?
)
:
MFC
<
FIELD
>
Type Parameters
FIELD
extends
MFF
=
CONTROL
[
"field"
]
Parameters
field
:
FIELD
resetControl
:
boolean
= false
emit
:
boolean
= true
Returns
MFC
<
FIELD
>
add
Controls
add
Controls
<
FIELD
>
(
fields
,
resetControl
?
,
emit
?
)
:
MFC
<
FIELD
>
[]
Type Parameters
FIELD
extends
MFF
=
CONTROL
[
"field"
]
Parameters
fields
:
FIELD
[]
resetControl
:
boolean
= false
emit
:
boolean
= true
Returns
MFC
<
FIELD
>
[]
after
Initialize
after
Initialize
(
)
:
void
Returns
void
append
Control
append
Control
<
CHILD_CONTROL
>
(
control
,
resetControl
?
,
emit
?
)
:
CHILD_CONTROL
Type Parameters
CHILD_CONTROL
extends
MFC
Parameters
control
:
CHILD_CONTROL
resetControl
:
boolean
= false
emit
:
boolean
= true
Returns
CHILD_CONTROL
append
Repeating
Control
append
Repeating
Control
<
FIELD
>
(
fieldTemplate
?
,
overrides
?
)
:
null
|
MFC
<
FIELD
>
Type Parameters
FIELD
extends
MFF
=
MFF
Parameters
Optional
fieldTemplate
:
string
|
number
|
FIELD
overrides
:
Partial
<
FIELD
>
= {}
Returns
null
|
MFC
<
FIELD
>
append
Repeating
Controls
append
Repeating
Controls
<
FIELD
>
(
fieldTemplates
?
)
:
MFC
<
FIELD
>
[]
Type Parameters
FIELD
extends
MFF
=
MFF
Parameters
Optional
fieldTemplates
:
string
[]
|
FIELD
[]
Returns
MFC
<
FIELD
>
[]
cleanup
cleanup
(
)
:
void
Returns
void
create
Subscription
create
Subscription
<
VALUE
>
(
observable
,
callback
)
:
void
Type Parameters
VALUE
=
unknown
Parameters
observable
:
Observable
<
VALUE
>
callback
:
(
(
value
:
VALUE
)
=>
any
)
(
value
)
:
any
Parameters
value
:
VALUE
Returns
any
Returns
void
emit
Change
emit
Change
<
VALUE
>
(
change
)
:
Promise
<
MFC
[]
>
Type Parameters
VALUE
=
unknown
Parameters
change
:
VALUE
Returns
Promise
<
MFC
[]
>
get
Control
get
Control
(
identifier
)
:
undefined
|
MFC
Parameters
identifier
:
DeepControlIdentifier
<
CONTROL
[
"field"
]
>
Returns
undefined
|
MFC
get
Control
Index
get
Control
Index
(
identifier
)
:
number
Parameters
identifier
:
string
|
MFC
Returns
number
move
Control
move
Control
(
identifier
,
toIndex
,
emit
?
)
:
void
Parameters
identifier
:
string
toIndex
:
number
emit
:
boolean
= true
Returns
void
on
Cleanup
on
Cleanup
(
)
:
void
Returns
void
on
Initialize
on
Initialize
(
)
:
void
Returns
void
prepare
prepare
(
)
:
void
Returns
void
rebuild
rebuild
(
resetControls
?
)
:
void
Parameters
resetControls
:
boolean
= false
Returns
void
remove
Control
remove
Control
(
identifier
,
emit
?
)
:
void
Parameters
identifier
:
string
|
number
emit
:
boolean
= true
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_value
control
initial
Value
subscriptions
manager
Name
Accessors
array
changes
group
has
Controls
name
other
Changes
value
Methods
add
Control
add
Controls
after
Initialize
append
Control
append
Repeating
Control
append
Repeating
Controls
cleanup
create
Subscription
emit
Change
get
Control
get
Control
Index
move
Control
on
Cleanup
on
Initialize
prepare
rebuild
remove
Control
Margarita form reference documentation
Loading...