Menu

Locked
tricky10
Posts: 79
Joined: 25 Oct 2010, 08:52
Location: Poland

09 Nov 2015, 15:22

Hi,
Is it possible to remove dots from RIO menu and replace them by something else ?

Thanks,
Glassfish Application Server V3.1.2.2
Primefaces Library 3.5 FINAL
Sun Mojarra 2.1.20

mert.sincan
Posts: 4352
Joined: 29 Jun 2013, 12:38

09 Nov 2015, 17:04

To remove dots icons
There are two ways;
1) You can try with css;

Code: Select all

.icon-ellipsis1 {
   display: none;
}
2) You can remove the structure of dots icon in RioMenuRenderer.java

Code: Select all

...
protected void encodeSubmenu(FacesContext context, AbstractMenu menu, Submenu submenu, int marginLevel) throws IOException{
    ...
   // Line 108-110
   // please remove
   writer.startElement("i", null);
   writer.writeAttribute("class", "icon-ellipsis1", null);
   writer.endElement("i");
  ...
}
...
protected void encodeMenuItemContent(FacesContext context, AbstractMenu menu, MenuItem menuitem) throws IOException {
   ...
  // Line 237-239
 // please remove
   writer.startElement("i", null);
   writer.writeAttribute("class", "icon-ellipsis1", null);
   writer.endElement("i");
  ...
}
...
To replace with new icons.
I think you can try to use new icon instead of icon-ellipsis1 in RioMenuRenderer.java. This is the easiest way. Another ways , you need to change RioMenu.java , RioMenuRenderer.java and primefaces-rio.taglib.xml.

tricky10
Posts: 79
Joined: 25 Oct 2010, 08:52
Location: Poland

10 Nov 2015, 11:10

Thx
Glassfish Application Server V3.1.2.2
Primefaces Library 3.5 FINAL
Sun Mojarra 2.1.20

mert.sincan
Posts: 4352
Joined: 29 Jun 2013, 12:38

10 Nov 2015, 12:45

You're welcome ;)

Locked

Return to “Rio”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest