reference
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);Related APIs
labkit.app.layout.workbench— Assemble controls and a central workspace into the root layout.labkit.app.layout.plotArea— Add one or more axes rendered by an App-owned renderer.labkit.app.layout.button— Add a push button with one explicit pressed callback.labkit.app.layout.dataTable— Add a tabular data display with optional editing and selection.labkit.app.layout.field— Add a text, numeric, choice, or logical input field.labkit.app.layout.fileList— Add file selection and portable-source controls.labkit.app.layout.group— Arrange related child elements without a titled boundary.labkit.app.layout.logPanel— Add a text display for App log messages.
Source
This page is generated from the MATLAB help text in +labkit/+app/+layout/workspace.m.