Module wicket.bootstrap.extensions
Class BootstrapToggleConfig
java.lang.Object
de.agilecoders.wicket.jquery.CombinableConfig
de.agilecoders.wicket.jquery.AbstractConfig
de.agilecoders.wicket.extensions.markup.html.bootstrap.form.checkbox.bootstraptoggle.BootstrapToggleConfig
- All Implemented Interfaces:
de.agilecoders.wicket.jquery.Config,Serializable,IClusterable
public class BootstrapToggleConfig
extends de.agilecoders.wicket.jquery.AbstractConfig
Configuration object for the settings of
Bootstrap Toggle
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithHeight(Integer value) protected BootstrapToggleConfigwithOffLabel(String value) Sets the off label of the toggle.protected BootstrapToggleConfigwithOnLabel(String value) Sets the on label of the toggle.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
-
BootstrapToggleConfig
public BootstrapToggleConfig()Default constructor
-
-
Method Details
-
withOffLabel
Sets the off label of the toggle. UseBootstrapToggle.getOffLabel()for better i18n support- Parameters:
value-- Returns:
- this instance, for method chaining
-
withOnLabel
Sets the on label of the toggle. UseBootstrapToggle.getOnLabel()for better i18n support- Parameters:
value-- Returns:
- this instance, for method chaining
-
withStyle
-
withOffStyle
-
withOnStyle
-
withSize
-
withWidth
-
withHeight
-