Views Structure
View Properties
| Name | Type | Default | Description |
|---|---|---|---|
<ViewName> | object | — | Top-level key is the view name displayed to users in the views selector. |
columns | object | None | Column visibility overrides for this view. Keys are binding paths matching column definitions. |
columns.<binding>.visible | boolean | true | Set to false to hide the column in this view. |
Defining Views
Views are defined in the top-levelviews section. Each view name becomes the label in the views selector UI:
Base View
The base view is the default column configuration defined by thecolumns section. It shows all columns at their configured visible state. The base view is always available as a fallback.
| Behavior | Description |
|---|---|
| No view selected | Base view is active, showing all columns at their default visibility. |
| Invalid view requested | Falls back to the base view. |
| View cleared | Returns to the base view. |
Default View
One view can be marked as the default view, which loads automatically instead of the base view when no URL parameter is present:The mechanism for marking a view as the default may vary by version. When a default view is configured, the base view option may be hidden from the menu.
View Selection Methods
Users can switch views through:| Method | Description |
|---|---|
| Menu | Access via the alternative views menu item. Shows current selection with a “Selected” indicator. |
| Dropdown | Quick-access dropdown selector showing all available views. |
| URL parameter | Direct URL access using ?_view=<view-key>. Enables bookmarking and sharing specific views. |
URL Parameter
The active view persists in the URL as the_view parameter:
| Scenario | URL Behavior |
|---|---|
| View selected | _view=<slugified-view-name> added to URL. |
| View cleared | _view parameter removed from URL. |
Invalid _view parameter | Falls back to base view or default view. |
View-Specific Column Visibility
Each view can independently control which columns are visible. Views can completely hide entity-level columns or selectively hide specific columns while keeping data accessible:Error Handling
Views handle configuration errors gracefully:- Non-existent property paths in view column configuration do not block view loading
- Invalid view definitions fall back to the base view columns
- Missing view names in URL parameters load the default or base view
Complete YAML Example
Related pages: Columns | Column Groups | Views Selector | Column Sets
Sources
Sources
KB ArticlesSource Code
prod-powersheet-src/com.nextedy.powersheet.client/src/modules/ConfigProvider/types/PowersheetConfig.d.tsprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/common/types/api/document.tspowersheet.yamlprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/sheet/commands/applyView.tsprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/cypress/e2e/Sheet/alternative-views.spec.ts