mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 03:04:28 +00:00
Document setWidget Component support
This commit is contained in:
parent
0919ec5417
commit
a5741df69a
1 changed files with 2 additions and 1 deletions
|
|
@ -941,8 +941,9 @@ ctx.ui.notify("Done!", "info"); // "info" | "warning" | "error"
|
||||||
ctx.ui.setStatus("my-ext", "Processing...");
|
ctx.ui.setStatus("my-ext", "Processing...");
|
||||||
ctx.ui.setStatus("my-ext", undefined); // Clear
|
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", ["Line 1", "Line 2"]);
|
||||||
|
ctx.ui.setWidget("my-widget", new Text(theme.fg("accent", "Custom"), 0, 0));
|
||||||
ctx.ui.setWidget("my-widget", undefined); // Clear
|
ctx.ui.setWidget("my-widget", undefined); // Clear
|
||||||
|
|
||||||
// Terminal title
|
// Terminal title
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue