Megamenu with more than 2 levels

UI Components for JSF
Post Reply
creon
Posts: 12
Joined: 21 Oct 2015, 12:36

19 Feb 2018, 13:35

Good morning,
actually megamenu in showcases has 2 levels.


Is there a way to have 3 or more levels??
Last edited by creon on 19 Feb 2018, 19:01, edited 1 time in total.
Primefaces 6.0

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

19 Feb 2018, 15:46

Did you **try** adding another level?

creon
Posts: 12
Joined: 21 Oct 2015, 12:36

19 Feb 2018, 18:27

Yes, I did..but my code doesn't work..
could you help me?

Code: Select all

			<p:submenu label="first level" style="width:350px; height:70px; font-size:18px;">
				<p:column>
					<p:submenu label="secondo level" >
						<p:menuitem value="Non-Ops Manuals"/>
					</p:submenu>
				</p:column>
			</p:submenu>
this code works for 2 levels..I'd like to have 3 levels...

Code: Select all

			<p:submenu label="first level" style="width:350px; height:70px; font-size:18px;">
				<p:column>
					<p:submenu label="second level" >
						<p:column>
					                 <p:submenu label="third level" >
						                 <p:menuitem value="Non-Ops Manuals"/>
					                 </p:submenu>
				                </p:column>
					</p:submenu>
				</p:column>
			</p:submenu>
but this code doesn't work..is there a way to do??
Primefaces 6.0

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

20 Feb 2018, 11:20

If it does not work in 6.0 nor in 6.1 or 6.2-RC* then it most likely just is not supported. See my answer in stackoverflow (you need to extend the component and add this 'feature')

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Leslienek and 27 guests