cushy/examples/disclose.rs
Jonathan Johnson 285c92f82b
Root tab order fix, Spacebar widget activiation
Closes #99

Disclose now accepts focus and responds to spacebar as a result of this.
2023-12-28 15:48:34 -08:00

14 lines
365 B
Rust

use cushy::widget::MakeWidget;
use cushy::widgets::Disclose;
use cushy::Run;
fn main() -> cushy::Result {
Disclose::new(
"This is some inner content"
.align_left()
.and(Disclose::new("This is even further inside".contain()))
.into_rows(),
)
.labelled_by("This demonstrates the Disclose widget")
.run()
}