LabKit MATLAB Workbench

reference

FrameworkApp SDK API

labkit.app.layout.rangeField

Add an input for a numeric lower and upper bound.

Syntax

node = labkit.app.layout.rangeField(id, Name=Value)

Description

Declares one two-value numeric range input.

Inputs

id
Unique MATLAB identifier for the layout target.

Options

Label
Display text. Default: id.
Value
Finite numeric 1-by-2 row. Default: [].
Limits
Increasing finite numeric 1-by-2 row. Default: [].
Enabled
Initial logical enabled state. Default: true.
Bind
Project or session field path. Default: "".
OnValueChanged
Scalar callback state = callback(state,value,context). Default: [].

Outputs

node
Immutable internal layout node accepted by layout containers.

Errors

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

Typical Call

node = labkit.app.layout.rangeField("window", Limits=[0 10]);

Source

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