Permalink
Browse files

#211 update tooltip showcase

  • Loading branch information...
larmic committed Sep 18, 2018
1 parent 637d478 commit dbb1307bb28919266fa84851eb1e760849660b8f
@@ -2,6 +2,7 @@
import org.butterfaces.component.showcase.AbstractCodeShowcase;
import org.butterfaces.component.showcase.example.AbstractCodeExample;
import org.butterfaces.component.showcase.example.WebXmlCodeExample;
import org.butterfaces.component.showcase.example.XhtmlCodeExample;
import org.butterfaces.model.tree.EnumTreeBoxWrapper;
@@ -104,6 +105,20 @@ public void buildCodeExamples(final List<AbstractCodeExample> codeExamples) {
}
codeExamples.add(xhtmlCodeExample);
codeExamples.add(createWebXmlExample());
}
private AbstractCodeExample createWebXmlExample() {
final WebXmlCodeExample webXmlCodeExample = new WebXmlCodeExample("web.xml", "webxml");
webXmlCodeExample.appendInnerContent(" <!-- If you want to position tooltips on label instead of component -->");
webXmlCodeExample.appendInnerContent(" <!-- default is false -->");
webXmlCodeExample.appendInnerContent(" <context-param>");
webXmlCodeExample.appendInnerContent(" <param-name>org.butterfaces.tooltip.position.label</param-name>");
webXmlCodeExample.appendInnerContent(" <param-value>true</param-value>");
webXmlCodeExample.appendInnerContent(" </context-param>");
return webXmlCodeExample;
}
public List<EnumTreeBoxWrapper> getTooltipTypes() {

0 comments on commit dbb1307

Please sign in to comment.