Document setWidget Component support

This commit is contained in:
Mario Zechner 2026-01-05 03:07:11 +01:00
parent 0919ec5417
commit a5741df69a

View file

@ -941,8 +941,9 @@ ctx.ui.notify("Done!", "info"); // "info" | "warning" | "error"
ctx.ui.setStatus("my-ext", "Processing...");
ctx.ui.setStatus("my-ext", undefined); // Clear
// Widget above editor (multi-line)
// Widget above editor (string array or Component)
ctx.ui.setWidget("my-widget", ["Line 1", "Line 2"]);
ctx.ui.setWidget("my-widget", new Text(theme.fg("accent", "Custom"), 0, 0));
ctx.ui.setWidget("my-widget", undefined); // Clear
// Terminal title