top of page

5 YEARS AGO

Set Menu Options via Velo

Extend an options attribute to the $("Menu") element.

 

For example:

 

$("Menu").options = [ { name: "Page Name", url: "/page"} ]

 

or with dropdown menus

 

$("Menu").options = [ { name: "Page Name", url: "/page", dropdownItems: [ { name: "Page Name", url: "/page"} ]} ]

 

 

There are a few use cases for this feature:

 

- Dynamically setting navigation depending on user role or other

- Some pages like routers can't be added to current menus

 

Related:

 

- Allow router pages to be added to a menu (currently, I get an error: "This link only works on your published site")

 

By the way, I love the new menu system where you can create different menus for the same site!!

 

Thanks :)

 

Pending

API

1 Votes

Top Requests

  • Lorem Ipsum.

  • Lorem Ipsum.

  • Lorem Ipsum.

  • Lorem Ipsum.

Log  in to your Wix account to leave a comment

Thanks for posting! Your comment will be shown once it’s reviewed.

Comments

Add your comments and suggestions here.

Post Comment

User Name

Created Date

Comment Content

User Name

Created Date

Comment Content

Latest Velo Features

Wix Editor Elements ($w): Multi-State Box API

Create a multistate of an object with the dedicated API.

NOV 13 2019

Wix Editor Elements ($w): Multi-State Box API

Create a multistate of an object with the dedicated API.

NOV 13 2019

Wix Editor Elements ($w): Multi-State Box API

Create a multistate of an object with the dedicated API.

NOV 13 2019

Request a Feature

Have an idea for Velo’s next best feature? We want to hear it.

This website was designed with Velo by Wix

bottom of page