gyscos / gyscos/cursive

[Help] How to dynamically build menu subtrees?

Open
#307 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.8k
Forks
270
Avg merge
5d 19h
Merged PRs (30d)
2

Description

I'm asking for help.

# Problem description

I'm trying to figure out how menu items in subtrees could be generated at runtime to be refreshed every time menu is selected.

Currently I need to clear the menu and recreate it in the callback to an event. Is there better way?

It would be nice if menu can invoke callback automatically (like dynamic version of `with()`) to recreate the content based on the _model_ running inside the application.

Any hint welcome.

# Environment

* Operating system: **Windows**
* Backend used: **pancurses** in win32 mode
* Current locale: no such thing on Windows
* Cursive version: from git

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.