Module wicket.bootstrap.core
Class TooltipConfig
java.lang.Object
de.agilecoders.wicket.jquery.CombinableConfig
de.agilecoders.wicket.jquery.AbstractConfig
de.agilecoders.wicket.core.markup.html.bootstrap.components.TooltipConfig
- All Implemented Interfaces:
de.agilecoders.wicket.jquery.Config,Serializable,IClusterable
- Direct Known Subclasses:
PopoverConfig
public class TooltipConfig
extends de.agilecoders.wicket.jquery.AbstractConfig
TooltipBehavior configuration- Author:
- miha
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceinterface for tooltip placement. can be used to inject functions.static enumall possible trigger for tooltipstatic enumholds all possible tooltip positions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithAnimation(boolean value) apply a css fade transition to the tooltipwithContent(String value) default content value if `data-bs-content` attribute isn't presentdelay showing and hiding the tooltip (ms) - does not apply to manual trigger typewithHtml(boolean value) Insert html into the tooltip.how to position the tooltip - top | bottom | left | rightwithSanitizer(boolean value) Controls Bootstrap's internal sanitizer.withSelector(String value) If a selector is provided, tooltip objects will be delegated to the specified targets.default title value if `title` tag isn't presenthow tooltip is triggered - click | hover | focus | manualMethods 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
-
TooltipConfig
public TooltipConfig()Construct.
-
-
Method Details
-
withAnimation
apply a css fade transition to the tooltip- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withPlacement
how to position the tooltip - top | bottom | left | right- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withSelector
If a selector is provided, tooltip objects will be delegated to the specified targets.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withTitle
default title value if `title` tag isn't present- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withContent
default content value if `data-bs-content` attribute isn't present- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withTrigger
how tooltip is triggered - click | hover | focus | manual- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withDelay
delay showing and hiding the tooltip (ms) - does not apply to manual trigger type Not implemented: If a number is supplied, delay is applied to both hide/show Object structure is: delay: { show: 500, hide: 100 }- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withHtml
Insert html into the tooltip. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-
withSanitizer
Controls Bootstrap's internal sanitizer.- Parameters:
value- mandatory parameter- Returns:
- this instance for chaining.
-