java.lang.Object
de.agilecoders.wicket.jquery.CombinableConfig
de.agilecoders.wicket.jquery.AbstractConfig
de.agilecoders.wicket.core.markup.html.bootstrap.components.TooltipConfig
de.agilecoders.wicket.core.markup.html.bootstrap.components.PopoverConfig
All Implemented Interfaces:
de.agilecoders.wicket.jquery.Config, Serializable, IClusterable

public class PopoverConfig extends TooltipConfig
PopoverBehavior configuration
Author:
miha
See Also:
  • Constructor Details

    • PopoverConfig

      public PopoverConfig()
  • Method Details

    • withPlacement

      public PopoverConfig withPlacement(TooltipConfig.IPlacement value)
      Description copied from class: TooltipConfig
      how to position the tooltip - top | bottom | left | right
      Overrides:
      withPlacement in class TooltipConfig
      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.
    • withTrigger

      public PopoverConfig withTrigger(TooltipConfig.OpenTrigger value)
      Description copied from class: TooltipConfig
      how tooltip is triggered - click | hover | focus | manual
      Overrides:
      withTrigger in class TooltipConfig
      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.
    • withHoverTrigger

      public PopoverConfig withHoverTrigger()
    • withAnimation

      public PopoverConfig withAnimation(boolean value)
      Description copied from class: TooltipConfig
      apply a css fade transition to the tooltip
      Overrides:
      withAnimation in class TooltipConfig
      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.
    • withSelector

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

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

      public PopoverConfig withContent(String value)
      Description copied from class: TooltipConfig
      default content value if `data-bs-content` attribute isn't present
      Overrides:
      withContent in class TooltipConfig
      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.
    • withDelay

      public PopoverConfig withDelay(Duration value)
      Description copied from class: TooltipConfig
      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 }

      Overrides:
      withDelay in class TooltipConfig
      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.
    • withHtml

      public PopoverConfig withHtml(boolean value)
      Description copied from class: TooltipConfig
      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.
      Overrides:
      withHtml in class TooltipConfig
      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.
    • withSanitizer

      public PopoverConfig withSanitizer(boolean value)
      Description copied from class: TooltipConfig
      Controls Bootstrap's internal sanitizer.
      Overrides:
      withSanitizer in class TooltipConfig
      Parameters:
      value - mandatory parameter
      Returns:
      this instance for chaining.