public class TooltipConfig extends AbstractConfig
TooltipBehavior configuration| Modifier and Type | Class and Description |
|---|---|
static interface |
TooltipConfig.IPlacement
interface for tooltip placement. can be used to inject functions.
|
static class |
TooltipConfig.OpenTrigger
all possible trigger for tooltip
|
static class |
TooltipConfig.Placement
holds all possible tooltip positions
|
AbstractConfig.IKey<T>| Constructor and Description |
|---|
TooltipConfig()
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
TooltipConfig |
withAnimation(boolean value)
apply a css fade transition to the tooltip
|
TooltipConfig |
withContent(String value)
default content value if `data-content` attribute isn't present
|
TooltipConfig |
withDelay(org.apache.wicket.util.time.Duration value)
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 }
|
TooltipConfig |
withHtml(boolean value)
Insert html into the tooltip.
|
TooltipConfig |
withPlacement(TooltipConfig.IPlacement value)
how to position the tooltip - top | bottom | left | right
|
TooltipConfig |
withSelector(String value)
If a selector is provided, tooltip objects will be delegated to the specified targets.
|
TooltipConfig |
withTitle(String value)
default title value if `title` tag isn't present
|
TooltipConfig |
withTrigger(TooltipConfig.OpenTrigger value)
how tooltip is triggered - click | hover | focus | manual
|
all, getString, isEmpty, newKey, put, remove, toJsonString, wrappublic TooltipConfig withAnimation(boolean value)
value - mandatory parameterpublic TooltipConfig withPlacement(TooltipConfig.IPlacement value)
value - mandatory parameterpublic TooltipConfig withSelector(String value)
value - mandatory parameterpublic TooltipConfig withTitle(String value)
value - mandatory parameterpublic TooltipConfig withContent(String value)
value - mandatory parameterpublic TooltipConfig withTrigger(TooltipConfig.OpenTrigger value)
value - mandatory parameterpublic TooltipConfig withDelay(org.apache.wicket.util.time.Duration value)
value - mandatory parameterpublic TooltipConfig withHtml(boolean value)
value - mandatory parameterCopyright © 2013 agilecoders.de. All Rights Reserved.