LabKit MATLAB Workbench

reference

FrameworkApp SDK API

labkit.app.layout.workspace

Define the App's central working area and optional pages.

Syntax

node = labkit.app.layout.workspace() node = labkit.app.layout.workspace(content, Name=Value)

Description

Declares a single-content workspace or a workspace extended with node.page(id,title,content) and node.initialPage(id). A named page accepts one workspace node or a nonempty row cell array of nodes arranged vertically; growable tables and plots share the available page height.

Inputs

content
Optional plotArea, dataTable, group, or section node. For node.page, content may also be a nonempty row cell array of workspace nodes.

Options

Title
Reader-facing workspace title. Default: "Workspace".
OnPageChanged
Callback state = callback(state,pageId,context). Default: [].

Outputs

node
Immutable workspace node accepted by layout.workbench.

Errors

Throws labkit:app:contract:* for invalid content, pages, or callbacks.

Typical Call

node = labkit.app.layout.workspace(plotArea);

Source

This page is generated from the MATLAB help text in +labkit/+app/+layout/workspace.m.