gwt - How to use QuickTip on Grid cell Sencha GXT 3.1.1? -
gwt - How to use QuickTip on Grid cell Sencha GXT 3.1.1? -
i need add together tooltip on grid cell, tooltip must allow user select text within tooltip. i'm using quicktip this.
columnconfig<clientmodel, string> clmname = new columnconfig<clientmodel, string> (dpgridmodel.name(), 150, "name"); clmname.setcell(new textcell() { @override public void render(context context, string value, safehtmlbuilder sb) { if (value != null) { stringbuilder baux = new stringbuilder(); clientmodel c = lstmodel.get(context.getindex()); baux.append("<div style='width:100%;height:21px;' qtip='<table>"); baux.append("<tr><td><b>id:</b></td><td>" + c.getid() + "</td></tr>"); baux.append("<tr><td><b>name:</b></td><td>" + c.getname() + "</td></tr>"); baux.append("<tr><td><b>adress:</b></td><td>" + c.getaddress()+ "</td></tr>"); baux.append("<tr><td><b>city:</b></td><td>" + c.getcity()+ "</td></tr>"); baux.append("<tr><td><b>email:</b></td><td>" + c.getemail() + "</td></tr>"); baux.append("<tr><td><b>phone:</b></td><td>" + c.getphone() + "</td></tr>"); baux.append("<tr><td><b>zip code:</b></td><td>" + c.getzipcode() + "</td></tr>"); baux.append("</table>'>" + value + "</div>"); sb.appendhtmlconstant(baux.tostring()); } } }); quicktip t = new quicktip(gridclient); t.setallowtextselection(true); t.setclosable(true); the tooltip ever hides when mouse move. need tooltip wait close click hide, tooltip tooltipconfig.
i tryed using quicktip tooltipconfig this.
quicktip cqt = new quicktip(gridclient); cqt.setmaxwidth(650); cqt.setclosable(true); cqt.setquickshowinterval(500); cqt.setallowtextselection(true); tooltipconfig config = new tooltipconfig(); config.setautohide(false); cqt.settooltipconfig(config); it's works quicktip doesn't hide, appears blank tooltip above quicktip
thanks help :d
the sec seek not work because when phone call settooltipconfig in quicktip object going create new tooltip quicktip , not want.
in first case need set autohide false, there no method in quicktip class, alternative utilize update method this:
quicktip t = new quicktip(gridclient); t.setallowtextselection(true); tooltipconfig config = new tooltipconfig(); config.setautohide(false); config.setcloseable(true); // need set here otherwise overwritten t.update(config); gwt extjs tooltip gxt
Comments
Post a Comment