Search in sources :

Example 1 with PopoverBehavior

use of de.agilecoders.wicket.core.markup.html.bootstrap.components.PopoverBehavior in project syncope by apache.

the class FieldPanel method setTitle.

public FieldPanel<T> setTitle(final String title, final boolean html) {
    this.title = title;
    field.add(new PopoverBehavior(Model.<String>of(), title == null ? Model.<String>of() : Model.of(title), new PopoverConfig().withHtml(html).withHoverTrigger().withPlacement(index.getObject() != null && index.getObject() == 0 ? TooltipConfig.Placement.bottom : this instanceof AjaxCheckBoxPanel ? TooltipConfig.Placement.right : TooltipConfig.Placement.top)));
    return this;
}
Also used : PopoverBehavior(de.agilecoders.wicket.core.markup.html.bootstrap.components.PopoverBehavior) PopoverConfig(de.agilecoders.wicket.core.markup.html.bootstrap.components.PopoverConfig)

Aggregations

PopoverBehavior (de.agilecoders.wicket.core.markup.html.bootstrap.components.PopoverBehavior)1 PopoverConfig (de.agilecoders.wicket.core.markup.html.bootstrap.components.PopoverConfig)1