Hi,
Is it possible to remove dots from RIO menu and replace them by something else ?
Thanks,
Menu
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
To remove dots icons
There are two ways;
1) You can try with css;
2) You can remove the structure of dots icon in RioMenuRenderer.java
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.
There are two ways;
1) You can try with css;
Code: Select all
.icon-ellipsis1 {
display: none;
}
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");
...
}
...
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.
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
You're welcome
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 10 guests