Skip to content

Commit

Permalink
document show/hide level picker and nav buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
tibotiber committed Sep 7, 2024
1 parent d90b7b0 commit aa329a0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/api-reference/space/custom-ux.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,24 @@ space.setMode(mode: '2d' | '3d') => void

- `mode` - the desired rendering mode.

### Show/hide level picker

This is the programmatic equivalent of setting `hideLevelPicker` in `startViewer`:

```ts
space.showLevelPicker() => void
space.hideLevelPicker() => void
```

### Show/hide the navigation buttons

This is the programmatic equivalent of setting `hideNavigationButtons` in `startViewer`:

```ts
space.showNavigationButtons() => void
space.hideNavigationButtons() => void
```

### Navigate levels

This is the programmatic equivalent to pressing the level buttons in the bottom-left controls:
Expand Down

0 comments on commit aa329a0

Please sign in to comment.