LabKit MATLAB Workbench

reference

FrameworkApp SDK API

labkit.app.layout.slider

Add a bounded numeric slider.

Syntax

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

Description

Declares one bounded scalar slider.

Inputs

id
Unique MATLAB identifier for the layout target.

Options

Label
Display text. Default: id.
Value
Finite numeric scalar. Default: lower Limits value.
Limits
Increasing finite numeric 1-by-2 row. Default: [0 1].
Step
Positive numeric scalar. Default: [].
ValueDisplayFormat
Optional spinner numeric format such as "%.6g". Default: "".
ShowTicks
Logical tick visibility. Default: false.
Bind
Project or session field path. Default: "".
Enabled
Initial logical enabled state. Default: true.
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.slider("frame", Limits=[1 100], Step=1);

Source

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