sap.m.Wizard.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.Wizard with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.core.Control.extend.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
Returns a metadata object for class sap.m.Wizard.
Returns:
Adds a new step to the Wizard.
Parameters:
Returns:
attachComplete
(oData?, fnFunction, oListener?): sap.m.Wizard Attaches event handler
fnFunction
to the
complete
event of this
sap.m.Wizard
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.m.Wizard
itself.
The complete event is fired when the user clicks the finish button of the Wizard. The finish button is only available on the last step of the Wizard.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.m.Wizard itself |
Returns:
{sap.m.Wizard} | Reference to this in order to allow method chaining |
attachStepActivate
(oData?, fnFunction, oListener?): sap.m.Wizard Attaches event handler
fnFunction
to the
stepActivate
event of this
sap.m.Wizard
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.m.Wizard
itself.
The StepActivated event is fired every time a new step is activated.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.m.Wizard itself |
Returns:
{sap.m.Wizard} | Reference to this in order to allow method chaining |
Destroys all aggregated steps in the Wizard.
Returns:
{sap.m.Wizard} | Pointer to the control instance for chaining. |
Detaches event handler
fnFunction
from the
complete
event of this
sap.m.Wizard
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
{sap.m.Wizard} | Reference to this in order to allow method chaining |
Detaches event handler
fnFunction
from the
stepActivate
event of this
sap.m.Wizard
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
{sap.m.Wizard} | Reference to this in order to allow method chaining |
Discards all progress done from the given step(incl.) to the end of the wizard. The verified state of the steps is returned to the initial provided.
Parameters:
Returns:
{sap.m.Wizard} | Pointer to the control instance for chaining. |
Fires event complete
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
{sap.m.Wizard} | Reference to this in order to allow method chaining |
Fires event
stepActivate
to attached listeners.
Expects the following event parameters:
index
of type int
The index of the activated step as a parameter. One-based.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
{sap.m.Wizard} | Reference to this in order to allow method chaining |
getEnableBranching(): boolean
Gets current value of property
enableBranching
.
Enables the branching functionality of the Wizard. Branching gives the developer the ability to define multiple routes a user is able to take based on the input in the current step. It is up to the developer to programatically check for what is the input in the current step and set a concrete next step amongs the available subsequent steps. Note: If this property is set to false, next
and subSequentSteps
associations of the WizardStep control are ignored.
Default value is false
.
Returns:
{boolean} | Value of property enableBranching |
getFinishButtonText(): string
Returns the finish button text which will be rendered.
Returns:
{string} | The text which will be rendered in the finish button. |
Gets current value of property
height
.
Determines the height of the Wizard.
Default value is 100%
.
Returns:
getProgress(): number
Returns the number of the last activated step in the Wizard.
Returns:
{number} | The last activated step. |
Returns the last activated step in the Wizard.
Returns:
getShowNextButton(): boolean
Gets current value of property
showNextButton
.
Controls the visibility of the next button. The developers can choose to control the flow of the steps either through the API (with nextStep
and previousStep
methods) or let the user click the next button, and control it with validateStep
or invalidateStep
methods.
Default value is true
.
Returns:
{boolean} | Value of property showNextButton |
Gets content of aggregation
steps
.
The wizard steps to be included in the content of the control.
Returns:
Gets current value of property
width
.
Determines the width of the Wizard.
Default value is auto
.
Returns:
Goes to the given step.
Parameters:
{sap.m.WizardStep} | step | The step to go to. |
{boolean} | focusFirstStepElement | Defines whether the focus should be changed to the first element. |
Returns:
{sap.m.Wizard} | Pointer to the control instance for chaining. |
indexOfStep(oStep): int
Checks for the provided sap.m.WizardStep
in the aggregation steps
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
insertStep()
Dynamic step insertion is not yet supported.
Experimental API:
- Experimental:
Invalidates the given step.
Parameters:
Returns:
{sap.m.Wizard} | Pointer to the control instance for chaining. |
Validates the current step, and moves one step further.
Returns:
{sap.m.Wizard} | Pointer to the control instance for chaining. |
Discards the current step and goes one step back.
Returns:
{sap.m.Wizard} | Pointer to the control instance for chaining. |
removeAllSteps(): sap.m.Control
Removes all steps from the Wizard.
Returns:
{sap.m.Control} | Pointer to the Steps that were removed. |
removeStep()
Dynamic step removal is not yet supported.
Experimental API:
- Experimental:
Sets a new value for property
enableBranching
.
Enables the branching functionality of the Wizard. Branching gives the developer the ability to define multiple routes a user is able to take based on the input in the current step. It is up to the developer to programatically check for what is the input in the current step and set a concrete next step amongs the available subsequent steps. Note: If this property is set to false, next
and subSequentSteps
associations of the WizardStep control are ignored.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bEnableBranching | New value for property enableBranching |
Returns:
{sap.m.Wizard} | Reference to this in order to allow method chaining |
Sets the text for the finish button. By default it is "Review".
Parameters:
{string} | value | The text of the finish button. |
Returns:
{sap.m.Wizard} | Reference to the control instance for chaining. |
Sets a new value for property
height
.
Determines the height of the Wizard.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 100%
.
Parameters:
Returns:
{sap.m.Wizard} | Reference to this in order to allow method chaining |
Sets the visiblity of the next button.
Parameters:
{boolean} | value | True to show the button or false to hide it. |
Returns:
{sap.m.Wizard} | Reference to the control instance for chaining. |
Sets a new value for property
width
.
Determines the width of the Wizard.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is auto
.
Parameters:
Returns:
{sap.m.Wizard} | Reference to this in order to allow method chaining |
Validates the given step.
Parameters:
Returns:
{sap.m.Wizard} | Pointer to the control instance for chaining. |