How to remove the down-arrow in submenu?

Locked
FIBACos
Posts: 7
Joined: 14 Mar 2016, 18:42

14 Mar 2016, 18:52

Hi!

I´m using Primefaces Spark and i´m trying to build a dynamic Menu.

It´s working fine, but...

I want to remove the "Down-Arrow" that is always shown in the Submenu-Topic.


Can someone tell me where and how?

Thx

FIBACos

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

15 Mar 2016, 10:49

There are two workaround for this issue;

first;

Code: Select all

.fa-chevron-down {
       display: none !important;
}
second;
in SparkMenuRenderer.java

Code: Select all

protected void encodeSubmenu(FacesContext context, AbstractMenu menu, Submenu submenu, int marginLevel) throws IOException{
	...

        String menuIconClass = rootSubmenu ? "Fs14 Fright ShowOnMobile" : "Fs12 Fright"; //please remove "fa fa-chevron-down" class on line 227

FIBACos
Posts: 7
Joined: 14 Mar 2016, 18:42

15 Mar 2016, 11:11

YAY!

Fast and, more important, helpful Answer!

Thx aragorn!

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

15 Mar 2016, 11:37

Glad to hear, thanks for the comment! ;)

Locked

Return to “Spark”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests