- Source:
Methods
(static) multistepMoveToStep($form, step)
Move to step number step
, ignoring any validation.
Parameters:
Name | Type | Description |
---|---|---|
$form |
String | JQuery | JQuery object or css-selector representing the form |
step |
* |
- Source:
(static) multistepMoveToStepWithValidation($form, step)
Validate the current step, and move to step number step
if validation passes.
Parameters:
Name | Type | Description |
---|---|---|
$form |
String | JQuery | JQuery object or css-selector representing the form |
step |
Number |
- Source:
(static) repeaterAddSub($form, repeaterDataId)
Append a new sub-entry to the repeater with the name repeaterDataId
inside the form $form
Parameters:
Name | Type | Description |
---|---|---|
$form |
String | JQuery | JQuery object or css-selector representing the form |
repeaterDataId |
String | data-id attribute of the repeater. Normally this is simply the name of the repeater. However, in case of a nested repeater you need to append the name with the correct suffix. For example |
- Source:
(static) repeaterAddSubAtIndex($form, repeaterDataId, index)
Insert a new sub-entry at the given index
of the repeater with the name repeaterDataId
inside the form $form
Parameters:
Name | Type | Description |
---|---|---|
$form |
String | JQuery | JQuery object or css-selector representing the form |
repeaterDataId |
String | data-id attribute of the repeater. |
index |
Number | position where to insert the new sub-entry within the repeater |
- Source:
(static) repeaterRemoveSub($form, repeaterDataId, index)
Remove the last sub-entry from the repeater with the data-id attribute of repeaterDataId
inside the form $form
Parameters:
Name | Type | Description |
---|---|---|
$form |
String | JQuery | JQuery object or css-selector representing the form |
repeaterDataId |
String | data-id attribute of the repeater. |
index |
Number | position where to insert the new sub-entry within the repeater |
- Source:
(static) repeaterRemoveSubAtIndex($form, repeaterDataId, index)
Remove the sub-entry at the given index
of the repeater with the data-id attribute of repeaterDataId
inside the form $form
Parameters:
Name | Type | Description |
---|---|---|
$form |
String | JQuery | JQuery object or css-selector representing the form |
repeaterDataId |
String | data-id attribute of the repeater. |
index |
Number | position where to insert the new sub-entry within the repeater |
- Source:
(static) repeaterSetNumberOfSubs($form, repeaterDataId, numberOfSubs)
Set the number of subs for the repeater with the data-id attribute of repeaterDataId
inside the form $form
.
Subs are either appended to or removed from the end of the repeater.
Parameters:
Name | Type | Description |
---|---|---|
$form |
String | JQuery | JQuery object or css-selector representing the form |
repeaterDataId |
String | data-id attribute of the repeater. |
numberOfSubs |
Number | position where to insert the new sub-entry within the repeater |
- Source: