← Back
StatusBar
[basic]Status bar with live-updating fields
Status bar with live-updating fields
For the full interactive experience:
$ mix raxol.playground
Code
{:ok, bar} =
StatusBar.init(
id: :playground_status_bar,
separator: " | ",
items: [
%{key: "MODE", label: "NORMAL"},
%{key: "File", label: "demo.ex"},
%{key: "Pos", label: "1:1"}
]
)
# Items are plain data: swap them on state changes, then draw with
# StatusBar.render/2.