Search.../

showNavigationButtons

Determines if a gallery's navigation arrows are shown.

Description

A gallery's navigation arrows allow a user to click through the items in the gallery.

Notes:

  • The showNavigationButtons property is supported by galleries where the hasNavigationButtons capability is true.

  • If you change the gallery's type to one that doesn't support hasNavigationButtons and you try to use it, your code may no longer function correctly.

Type:

booleanRead & Write

Was this helpful?

Get whether navigation buttons are shown

Copy Code
1let areNavBtnShown = $w("#myGallery").showNavigationButtons; // true
Set navigation buttons to be hidden

Copy Code
1$w("#myGallery").showNavigationButtons = false;
Toggle whether navigation buttons are shown

Copy Code
1let myGallery = $w("#myGallery");
2myGallery.showNavigationButtons = !myGallery.showNavigationButtons;