EventLog¶
Chronological journal of events, shown newest first (IND-090 .. IND-093).

Alarms and events · Widget catalog · API reference ·
schema eventlog.schema.json
Example¶
The traits of the picture above:
ai.EventLog(label="EventLog", size=(520, 150))
Traits¶
| Trait | Type | Default | Set by | Description |
|---|---|---|---|---|
mode |
"control", "indicator" |
"indicator" |
host | "control": the user sets the value; "indicator": display only. |
size |
array | [600,200] |
host | [width, height] in CSS pixels. |
value |
array of object | [] |
host | Events in chronological order, {id, time, source, category, message}. Written by the host (Python: log(), connect()); the view shows at most the newest max_events. |
max_events |
integer | 500 |
host | Number of events kept (the oldest are dropped). |
Common traits (7), shared with other widgets
| Trait | Type | Default | Set by | Description |
|---|---|---|---|---|
label |
string | "" |
host | Plain text, never interpreted as HTML (SEC-002). |
disabled |
boolean | false |
host | Greyed out, input rejected. |
visible |
boolean | true |
host | |
tooltip |
string | "" |
host | Plain text shown on hover. |
style |
"modern", "classic", "system" |
"modern" |
host | |
theme |
"auto", "light", "dark", "system" |
"auto" |
host | "auto": the style decides; "system": the host page or the operating system (STYLE-007). |
skin |
object | {} |
host | Replaceable drawing parts: part name -> SVG source, sanitized (STYLE-005, STYLE-006). |
Set by: host, the program (Python, Julia, ...); widget, the user through the widget;
derived, computed from other traits by the host that owns the state, or by the widget.
See the trait contract.