3 ms·
Core Ratatui dev here. Mouse events are supported by the underlying backend libraries (e.g. crossterm). There's an example custom widget that shows how to hand
by joshka 3y ago
Core Ratatui dev here.
Mouse events are supported by the underlying backend libraries (e.g. crossterm). There's an example custom widget that shows how to handle these in Ratatui at https://github.com/ratatui-org/ratatui/blob/f767ea7d3766887cb79145103b5aa92e0eabf8f6/examples/custom_widget.rs#L241 https://github.com/ratatui-org/ratatui/blob/f767ea7d3766887c...
Note the code is fairly manual as Ratatui doesn't provide any abstractions over the input side of UIs - just the output. (yet?)