Release notes for 0.22
Ana Torres · today, 9:41
The knob is in, with a log scale for the EQ frequency and a bipolar arc for pan. Drag the dividers: the folders stop between 130 and 240 px, the list between 200 and 420.
Two panes with a draggable, keyboard-accessible divider (window splitter pattern); one pane has the size (the start one, or the end one with fixed="end": a docked inspector), which can be remembered.
1import net/http;
2
3fn main() -> int {
4 print("hello from raylang");
5 0
6}
Terminal
$ ray run hello from raylang ✓ exited with 0 in 41 ms
Ana Torres · today, 9:41
The knob is in, with a log scale for the EQ frequency and a bipolar arc for pan. Drag the dividers: the folders stop between 130 and 240 px, the list between 200 and 420.
1select name, dose, next_at
2 from alarms
3 where active = 1
4 order by next_at;
Results
| name | dose | next_at |
|---|---|---|
| Ibuprofen | 400 mg | 14:00 |
| Vitamin D | 1000 IU | 20:00 |
| Omeprazole | 20 mg | 08:00 |
For AI agents: this API as Markdown, or every component in llms-full.txt.
<ray-split> · RaySplit
Divider keys: arrows move it (Shift: faster), Home/End go to min/max, Enter or double click collapse the sized pane. position, min, max and collapsed are the sized pane's: the start pane, or the end pane with fixed="end".
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
orientation | orientation reflects | horizontal | vertical | horizontal | horizontal: side by side; vertical: stacked. |
fixed | fixed reflects | start | end | start | The pane that has the size and collapses; the other takes the rest. end: a panel docked on the end side (an inspector) that keeps its width while the start pane stretches. |
position | position | string | 50% | Initial size of the sized pane: px (280) or any CSS length (30%, 20rem). |
min | min | number | 0 | Minimum size of the sized pane in px. |
max | max | number | Maximum size of the sized pane in px. | |
collapsed | collapsed reflects | boolean | The sized pane is hidden. | |
disabled | disabled reflects | boolean | The divider cannot be moved. | |
autosave | autosave | string | A key: the size and the collapsed state are saved in localStorage and restored (a saved state wins over the collapsed attribute). |
| Event | Description |
|---|---|
ray-resize | After a drag, a key or a collapse. |
| Slot | Description |
|---|---|
start | The first pane: sized (a sidebar), or the one that takes the rest with fixed="end". |
end | The second pane: the one that takes the rest, or sized with fixed="end" (an inspector). |
| Part | Description |
|---|---|
divider | The separator. |
start | The start pane. |
end | The end pane. |
What it writes itself, in English; setStrings() translates them (Getting started: Languages).
| Key | English |
|---|---|
split.resize | Resize |