Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tui widgets #646

Merged
merged 4 commits into from
Dec 11, 2022
Merged

Tui widgets #646

merged 4 commits into from
Dec 11, 2022

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Dec 8, 2022

A version of #394 with a cleaner history that should be easier to review.

Add widgets to the tui renderer, and a general purpose cursor struct for any renderers.
Todo:

  • Textbox
    • Basic Keyboard Editing
  • Insert Mode
    • Mouse Support
    • size
    • maxlength
    • Use terminal cursor
  • Checkbox
  • Password
    • Hide characters
  • Button
    • onclick
  • Number
    • Limit to only numbers
    • Up/Down with arrow keys
    • Up/Down buttons
  • Range
    • Left/Right with keyboard
    • Mouse Support
    • Min/Max
    • Step

Demo:

tui_widgets.mp4

Future work: pass through global attributes

@ealmloff ealmloff mentioned this pull request Dec 8, 2022
20 tasks
@ealmloff ealmloff marked this pull request as draft December 8, 2022 12:36
@ealmloff ealmloff marked this pull request as ready for review December 8, 2022 12:40
@jkelleyrtp jkelleyrtp merged commit 5dc86fe into DioxusLabs:master Dec 11, 2022
@jkelleyrtp
Copy link
Member

Looks great!

@ealmloff ealmloff deleted the tui_widgets branch December 11, 2022 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants