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:
  • Constructor Details

    • TooltipConfig

      public TooltipConfig()
      Construct.
  • Method Details

    • withAnimation

      public TooltipConfig withAnimation(boolean value)
      apply a css fade transition to the tooltip
      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.
    • withPlacement

      public TooltipConfig withPlacement(TooltipConfig.IPlacement value)
      how to position the tooltip - top | bottom | left | right
      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.
    • withSelector

      public TooltipConfig withSelector(String value)
      If a selector is provided, tooltip objects will be delegated to the specified targets.
      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.
    • withTitle

      public TooltipConfig withTitle(String value)
      default title value if `title` tag isn't present
      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.
    • withContent

      public TooltipConfig withContent(String value)
      default content value if `data-bs-content` attribute isn't present
      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.
    • withTrigger

      public TooltipConfig withTrigger(TooltipConfig.OpenTrigger value)
      how tooltip is triggered - click | hover | focus | manual
      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.
    • withDelay

      public TooltipConfig withDelay(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 }

      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.
    • withHtml

      public TooltipConfig withHtml(boolean value)
      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

      public TooltipConfig withSanitizer(boolean value)
      Controls Bootstrap's internal sanitizer.
      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.