New API: Mobile Quick Action Bar

We are excited to announce that the mobile Quick Action Bar element has been added to the Wix Code API. A Quick Action Bar helps your site visitors contact you instantly from their mobile devices. You can choose which actions appear on it and customize the design to match your site. In addition to standard page element functionality, the Wix Code API allows you to change the layout and design of a Quick Action Bar that you’ve added to your mobile site.

How does it work?

Select the Quick Action Bar using the $w selector function.

  • Access the a property (.alignment, .colorScheme, .invertColorScheme, .showLabels). and get its current value or set its value to any of the option relevant for the property.

  • Use the .onItemClicked( ) event handler to run code in each time an item in the bar is clicked.

Examples:

Learn more

To learn more, see QuickActionBar in the API reference.

4 Likes