Feature Description
RadioGroup lets users select exactly one option from a predefined set, following the Fluent UI pattern for clear, accessible single-choice selection.
The widget uses an options array of RadioOption objects (label, value, enabled), plus a value property for the selected item and a changed(value) callback for selection updates.
Code Sample:
import { RadioGroup } from "std-widgets.slint";
RadioGroup {
title: "Target Platform";
options: [
{ label: "Desktop", value: "desktop", enabled: true },
{ label: "Mobile", value: "mobile", enabled: true },
{ label: "Embedded", value: "embedded", enabled: true },
];
value: "desktop";
changed(value) => {
debug("Selected platform:", value);
}
}
Product Impact
No response
Feature Description
RadioGroup lets users select exactly one option from a predefined set, following the Fluent UI pattern for clear, accessible single-choice selection.
The widget uses an options array of RadioOption objects (label, value, enabled), plus a value property for the selected item and a changed(value) callback for selection updates.
Code Sample:
Product Impact
No response