public class TourOptions
extends de.agilecoders.wicket.jquery.AbstractConfig
| Constructor and Description |
|---|
TourOptions() |
| Modifier and Type | Method and Description |
|---|---|
TourOptions |
withBackdrop(boolean value)
The storage system you want to use.
|
TourOptions |
withBasepath(org.apache.wicket.model.IModel<String> value)
Specify a default base path prepended to the path option of every single step.
|
TourOptions |
withContainer(org.apache.wicket.model.IModel<String> value)
Appends the step popover to a specific element.
|
TourOptions |
withDebug(boolean value)
Set this option to true to have some useful informations printed in the console.
|
TourOptions |
withKeyboard(boolean value)
This option set the left and right arrow navigation.
|
TourOptions |
withName(org.apache.wicket.model.IModel<String> value)
This option is used to build the name of the storage item where the tour state is stored.
|
TourOptions |
withOrphan(boolean value)
Allow to show the step regardless whether its element is not set, is not present in the page or is hidden.
|
TourOptions |
withRedirect(boolean value)
Set a custom function to execute as redirect function.
|
TourOptions |
withStorage(String value)
The storage system you want to use.
|
TourOptions |
withTemplate(org.apache.wicket.model.IModel<String> value)
String or function that returns a string of the HTML template for the popovers.
|
public TourOptions withName(org.apache.wicket.model.IModel<String> value)
This option is used to build the name of the storage item where the tour state is stored. You can initialize several tours with different names in the same page and application.
value - mandatory parameterpublic TourOptions withContainer(org.apache.wicket.model.IModel<String> value)
Appends the step popover to a specific element.
value - mandatory parameterpublic TourOptions withKeyboard(boolean value)
This option set the left and right arrow navigation.
value - mandatory parameterpublic TourOptions withStorage(String value)
The storage system you want to use. could be the objects window.localStorage, window.sessionStorage of your own object.
value - mandatory parameterpublic TourOptions withDebug(boolean value)
Set this option to true to have some useful informations printed in the console.
value - mandatory parameterpublic TourOptions withBackdrop(boolean value)
The storage system you want to use. could be the objects window.localStorage, window.sessionStorage of your own object.
value - mandatory parameterpublic TourOptions withRedirect(boolean value)
Set a custom function to execute as redirect function. The default redirect relies on the traditional document.location.href
value - mandatory parameterpublic TourOptions withOrphan(boolean value)
Allow to show the step regardless whether its element is not set, is not present in the page or is hidden. The step is fixed positioned in the middle of the page.
value - mandatory parameterpublic TourOptions withBasepath(org.apache.wicket.model.IModel<String> value)
Specify a default base path prepended to the path option of every single step. Very useful if you need to reuse the same tour on different environments or sub-projects.
value - mandatory parameterpublic TourOptions withTemplate(org.apache.wicket.model.IModel<String> value)
String or function that returns a string of the HTML template for the popovers.
value - mandatory parameterCopyright © 2011–2014 AgileCoders. All rights reserved.