mirror of
https://github.com/ratatui/ratatui.git
synced 2025-12-29 21:01:16 +00:00
This allows for multi-line symbols to be used as the highlight symbol.
```rust
let table = Table::new(rows, widths)
.highlight_symbol(Text::from(vec![
"".into(),
" █ ".into(),
" █ ".into(),
"".into(),
]));
```
20 lines
382 B
VHS
20 lines
382 B
VHS
# This is a vhs script. See https://github.com/charmbracelet/vhs for more info.
|
|
# To run this script, install vhs and run `vhs ./examples/table.tape`
|
|
Output "target/table.gif"
|
|
Set Theme "Aardvark Blue"
|
|
Set Width 1200
|
|
Set Height 800
|
|
Hide
|
|
Type "cargo run --example=table --features=crossterm"
|
|
Enter
|
|
Sleep 1s
|
|
Show
|
|
Sleep 2s
|
|
Set TypingSpeed 0.5s
|
|
Down 2
|
|
Up 2
|
|
Down 8
|
|
Up 12
|
|
Down 4
|
|
Sleep 2s
|