Views and Layouts

Views define what users see when they interact with your NExS app. This guide covers how to configure views, work with multiple views, and control navigation.

What is a View?

A view is a rectangular range of cells from your spreadsheet that users can see and interact with. Think of it as a “window” into your workbook.

AB
2viewSheet1!A1:G18

This creates a view showing cells A1 through G18 on Sheet1.

Defining Views

Basic View Definition

In your NExS.app worksheet:

AB
1appMy App
2viewSheet1!A1:G18

Using Named Ranges

You can reference a named range instead of cell coordinates:

AB
1appMy App
2viewMyDashboard

Where MyDashboard is a named range in Excel pointing to Sheet1!A1:G18.

Entire Worksheet

To include an entire worksheet as a view, specify just the sheet name:

AB
2viewSheet1

Default Sheet

If you omit the sheet name, NExS uses the first worksheet:

AB
2viewA1:G18

View Options

Naming Views

Give your view a descriptive name (appears in the view navigation menu):

ABC
2viewSheet1!A1:G18
3nameDashboard

Background Color

Set a background color for the entire view. This helps eliminate “ghost lines” between cells on some browsers:

ABC
2viewSheet1!A1:G18
3backgroundColor#f5f5f5

You can specify colors as:

  • Color names: white, lightgray, navy
  • Hex values: #f5f5f5, #336699
  • Cell reference: A1 (uses that cell’s background color)

Multiple Views

Create apps with multiple views for complex workflows or different audiences.

Example: Multi-Page Form

ABCD
1appInsurance Quote
2viewSheet1!A1:F20
3namePersonal Info
4editableB3:B8
5viewSheet1!A25:F45
6nameVehicle Info
7editableB26:B35
8viewSheet1!A50:F65
9nameYour Quote

Users see a dropdown menu to switch between “Personal Info”, “Vehicle Info”, and “Your Quote”.

Hiding the View Navigation

If you want to control view switching yourself (via buttons or JavaScript), hide the built-in menu:

ABC
1appMy App
2noViewNavtrue

Public Views

When building Team mode or Access Code apps, you often need some views to be publicly visible while others require authentication. Setting public to true on a view lets anyone see it without logging in, while other views remain protected.

ABCD
5viewSheet1!A50:F65
6nameScoreboard
7publictrue

Consider a competition scoring app: judges log in with access codes to enter their scores on a private panel, while spectators watch results update on a public scoreboard—no login required.

Hidden Views

Sometimes you need NExS to process data without displaying it. Hidden views never appear in the UI but remain accessible through the JavaScript API, making them useful for storing configuration values, reading intermediate calculations, or building completely custom interfaces where your own HTML handles display while NExS provides the calculation engine.

ABCD
5viewSheet2!A1:A10
6nameSettings
7hiddentrue

With this configuration, the “Settings” view won’t appear in any navigation menu, but your JavaScript can still read from and write to its cells.

Layout Tips

Sizing for Your Audience

Think about where your app will be used. Desktop users benefit from larger views (800×600 pixels or bigger) that take advantage of screen real estate. Mobile users need narrow layouts—keep views under 350 pixels wide so they don’t require horizontal scrolling. For embedded widgets in website sidebars, compact views work best since they share space with other content.

Using Multiple Worksheets

Complex apps benefit from spreading content across multiple Excel worksheets. This keeps each sheet focused and makes your workbook easier to maintain:

ABCD
2viewDashboard!A1:H20
3nameDashboard
4viewDataEntry!A1:F30
5nameEnter Data
6viewReports!A1:J25
7nameReports

Cells outside all views remain hidden—use them for intermediate calculations, lookup tables, or configuration.

Next Steps