Module wicket.bootstrap.extensions
Class TourOptions
java.lang.Object
de.agilecoders.wicket.jquery.CombinableConfig
de.agilecoders.wicket.jquery.AbstractConfig
de.agilecoders.wicket.extensions.markup.html.bootstrap.tour.TourOptions
- All Implemented Interfaces:
de.agilecoders.wicket.jquery.Config,Serializable,IClusterable
public class TourOptions
extends de.agilecoders.wicket.jquery.AbstractConfig
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithBackdrop(boolean value) Show a dark backdrop behind the popover and its element, highlighting the current step.Add padding to the backdrop element that highlights the step element.withBasepath(IModel<String> value) Specify a default base path prepended to the path option of every single step.withContainer(IModel<String> value) Appends the step popover to a specific element.withDebug(boolean value) Set this option to true to have some useful informations printed in the console.withKeyboard(boolean value) This option set the left and right arrow navigation.This option is used to build the name of the storage item where the tour state is stored.withOrphan(boolean value) Allow to show the step regardless whether its element is not set, is not present in the page or is hidden.withRedirect(boolean value) Set a custom function to execute as redirect function.withStorage(String value) The storage system you want to use. could be the objects window.localStorage, window.sessionStorage of your own object.withTemplate(IModel<String> value) String or function that returns a string of the HTML template for the popovers.Methods inherited from class de.agilecoders.wicket.jquery.AbstractConfig
all, contains, get, getString, isEmpty, newKey, put, remove, toJsonString, wrapMethods inherited from class de.agilecoders.wicket.jquery.CombinableConfig
combine, withFallback
-
Constructor Details
-
TourOptions
public TourOptions()
-
-
Method Details
-
withName
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.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withContainer
Appends the step popover to a specific element.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withKeyboard
This option set the left and right arrow navigation.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withStorage
The storage system you want to use. could be the objects window.localStorage, window.sessionStorage of your own object.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withDebug
Set this option to true to have some useful informations printed in the console.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withBackdrop
Show a dark backdrop behind the popover and its element, highlighting the current step.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withBackdropPadding
Add padding to the backdrop element that highlights the step element. It can be a number or a object containing optional top, right, bottom and left numbers.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withRedirect
Set a custom function to execute as redirect function. The default redirect relies on the traditional document.location.href- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withOrphan
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.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withBasepath
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.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withDelay
-
withTemplate
String or function that returns a string of the HTML template for the popovers.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-