19 package org.turro.zkoss.label;
21 import java.util.function.Consumer;
22 import org.turro.string.Phrases;
23 import org.turro.html.HtmlContent;
24 import org.zkoss.zk.ui.event.EventListener;
25 import org.zkoss.zk.ui.event.Events;
26 import org.zkoss.zul.Html;
60 html.setTooltiptext(
text);
71 .
content(HtmlContent.truncate(html.getContent(), maxChars));
75 html.setContent(
text);
85 html.addEventListener(Events.ON_CLICK, listener);
93 public Html
get(Consumer<Html> onGet) {
105 return new Htmls(Phrases.start(
"<i class='").add(
icon).add(
"icon'></i>").toString());
108 private final Html html;
Htmls onClick(EventListener listener)
Htmls height(String height)
Htmls tooltiptext(String text)
static Htmls icon(String icon)
Htmls style(String style)
static Htmls text(String content)
Htmls content(String text)
Htmls cssClass(String cssClass)
Htmls width(String width)