Members
-
defaults :FormPagesOptions
-
Details
Methods
-
init()
-
Description
Initializes the plugin.
Details
-
adaptContainerHeightOnChangePage()
-
Description
Adapts the container height when page changed.
Details
-
updateAdaptiveContainerHeight()
-
Description
If the
adaptiveContainerHeightis set to true, this function recalculates the height of the container.Details
Type Definitions
-
PaginationDirection
-
Details
-
FormPagesOptions
-
Description
All properties which the suffix is "Class" can be an array, which will be joined and cleaned before being added to the elements. The value of
thison all callbacks is the jQuery element you applied the plugin to.Properties
Name Type Attributes Default Description activePageClassstring ".form-pages__page--active" The active page selector.
adaptiveContainerHeightstring true Tells if the form container height must be adaptive to the active page.
formPageClassstring ".form-pages__page" The selector which will separate the form pages.
formPagesContainerAdaptiveHeightClassstring ".form-pages__page-container--adaptive-height" The selector for the pages container when adaptiveContainerHeight is set to true.
nextButtonClassstring ".form-pages__next-button" The selector for the "next" button.
prevButtonClassstring ".form-pages__prev-button" The selector for the "previous" button.
submitButtonClassstring ".form-pages__submit-button" The selector for the form submit button.
paginationDirectionPaginationDirection "horizontal" The direction that the form will move.
onInitializedfunction <nullable> Callback for when plugin finishes loading.
onMovedPagefunction <nullable> Callback for when page moves.
onNextPagefunction <nullable> Callback for when the form goes to the next page.
onPrevPagefunction <nullable> Callback for when the form goes to the previous page.
onSubmitFormfunction <nullable> Callback for when the form gets submitted.
onRecalculateContainerHeightfunction <nullable> Callback for when the form's container height is recalculated. Triggered only when
adaptiveContainerHeightis true.shouldMoveForwardsfunction <nullable> Callback to validate if the form should move forwards. Useful for validation.
Details
-
Dimensions
-
Properties
Name Type Description widthnumber heightnumber Details
-
Direction
-
Details