Skip to content

Tuner.Expander

An expandable row that contains other settings rows.

PropertyTypeDescription
titlestringRow title
subtitlestringText under the title
show-enable-switchboolShow a switch that controls the expansion

Unlike most widgets, the binding is optional here. If set, it is bound to the expansion state — together with show-enable-switch this makes a group of settings that can be turned on and off as a whole.

blp
Tuner.Expander {
    title: _("Advanced");

    Tuner.Switch {
        title: _("Experimental feature");

        binding: Tuner.Setting {
            schema-id: "org.example.app";
            schema-key: "experimental";
        };
    }
}

Released under the GPL-3.0+ License. The content is available under CC BY-SA 4.0, unless stated otherwise.