[CLOSED] Hyperlink in a menu button

  1. #1

    [CLOSED] Hyperlink in a menu button

    Hi,

    I would like to add a Hyperlink in the Menu Button. My Menu Button looks like this -

    @(Html.X().Button()
       .Text((string)(Model.LoginUserName))
       .Menu(Html.X().Menu()
              .Items(
                  Html.X().MenuItem()
                   .Text("Do Something")
                   .Icon(Icon.Anchor)
                   .DirectEvents(de =>{
                        de.Click.Url = Url.Action("doSomething", "Main");
                    }),
                  X.MenuItem()
                   .Text("Item 2")
                   .Icon(Icon.GroupDelete),
                   
                ------> here a link to www.google.com
           )
       )
    )
    How can i put a hyperlink to www.google.com as the last Menu Item in the Menu Button ? Please assist.

    Thanks.
    Last edited by Daniil; Sep 04, 2015 at 5:52 PM. Reason: [CLOSED]
  2. #2
    Hi @barnali,

    You could try with a Hyperlink component.
    .Menu(Html.X().Menu()
        .Items(
            Html.X().MenuItem()...,
    
            Html.X().Hyperlink().Text("Google").NavigateUrl("https://www.google.com")
    )

Similar Threads

  1. Replies: 3
    Last Post: Feb 02, 2015, 5:32 AM
  2. Replies: 4
    Last Post: Mar 04, 2014, 2:20 PM
  3. Replies: 1
    Last Post: Jan 15, 2014, 4:47 AM
  4. [CLOSED] Menu tab button not aligned with close tab button
    By xeo4.it in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 11, 2012, 11:44 AM
  5. [CLOSED] Dynamically generate button and button menu problem.
    By csssi_coolite in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Dec 22, 2011, 5:02 AM

Posting Permissions