Skip to main content

TitleValue

Displays a key-value pair, like Settings -→ General -→ About.

KeyTypeDescriptionRequiredDefaultMin Version
valueprimitiveValue displayed on the rightnil
snippetstringSnippet template filenamenil

Swipe left to clear the saved value in preferences (does not override the value provided in the XUI config).

If both defaults and key are set for this component, it can display the actual value stored. If snippet is set to a .snippet template, the component gains a built-in snippet picker: tapping it enqueues snippet pickers and, upon completion, saves the result into this component’s preference key. See Snippet.

Example

{
cell = "Group";
label = "QR Code";
footerText = "The scan result will appear in the field below";
};
{
cell = "Button";
label = "Open QR Scanner";
key = "qr1";
action = "ScanQRCode:";
kwargs = {};
};
{
cell = "TitleValue";
label = "Scan result";
key = "qr1";
};

XUI-TitleValue-QR.png

XUI-TitleValue-Snippets.png