Skip to content

Commit

Permalink
#936 make the navbar kebab icon customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed Jun 1, 2018
1 parent 6e60100 commit 9843e67
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/main/java/net/bootsfaces/component/navBar/NavBarRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,19 @@ public void encodeBegin(FacesContext context, UIComponent component) throws IOEx
rw.writeAttribute("class", "sr-only", "class");
rw.writeText("Toggle navigation", null);
rw.endElement("span");
rw.startElement("span", navBar);
rw.writeAttribute("class", "icon-bar", "class");
rw.endElement("span");
rw.startElement("span", navBar);
rw.writeAttribute("class", "icon-bar", "class");
rw.endElement("span");
rw.startElement("span", navBar);
rw.writeAttribute("class", "icon-bar", "class");
rw.endElement("span");
if (navBar.getFacet("kebab") != null) {
navBar.getFacet("kebab").encodeAll(context);
} else {
rw.startElement("span", navBar);
rw.writeAttribute("class", "icon-bar", "class");
rw.endElement("span");
rw.startElement("span", navBar);
rw.writeAttribute("class", "icon-bar", "class");
rw.endElement("span");
rw.startElement("span", navBar);
rw.writeAttribute("class", "icon-bar", "class");
rw.endElement("span");
}
rw.endElement("button");
String brand = navBar.getBrand();
String brandImg = navBar.getBrandImg();
Expand Down

0 comments on commit 9843e67

Please sign in to comment.