mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
switchable edn example
This commit is contained in:
parent
4ae31bbba0
commit
ce4574ed78
8 changed files with 105 additions and 21 deletions
|
|
@ -12,7 +12,7 @@ fn main () -> Usually<()> {
|
|||
|
||||
pub struct Example;
|
||||
|
||||
impl EdnLayout<Tui> for &Example {
|
||||
impl EdnViewData<Tui> for &Example {
|
||||
fn get_content <'a> (&'a self, sym: &'a str) -> RenderBox<'a, Tui> {
|
||||
Box::new(Thunk::new(move||match sym {
|
||||
":hello" => "Hello",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue