LabKit MATLAB Workbench

reference

FrameworkApp SDK API

labkit.app.layout.button

Add a push button with one explicit pressed callback.

Syntax

node = labkit.app.layout.button(id, label, onPressed, Name=Value)

Description

Declares a semantic push button without creating a native component.

Inputs

id
Unique MATLAB identifier for the layout target.
label
Nonempty text displayed on the button.
onPressed
Scalar function handle with the fixed callback state = onPressed(state,context).

Options

BusyMessage
Status text while the action runs. Default: "".
Enabled
Initial logical enabled state. Default: true.
Tooltip
Nonempty hover text explaining the action's scientific or workflow effect. Default: label.

Outputs

node
Immutable internal layout node accepted by layout containers.

Errors

Throws labkit:app:contract:* for invalid IDs, options, or handlers.

Typical Call

node = labkit.app.layout.button("run", "Run", @runAnalysis, ...
Tooltip="Compute the current analysis from the selected inputs.");

Source

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