Comments (3)
Hey @koddr, the Key
value is actually to get the value from the form when not using Value
so that the value can be extracted from the form without using variable pointers.
In your case, you would need a map[string]string
to map the value (country code) back to the country name. Apologies for the confusion on the Key
variable!
from huh.
Just to add some more color here, we added the Key
methods to make integration with Bubble Tea easier — and if you're using Value
there's really not much reason to use Key
from huh.
Hey @koddr, just cleaning up some issues, so will close this one for now. Please feel free to re-open it or make a new issue if you need anything else!
from huh.
Related Issues (20)
- Support Table for Display and Selection
- bug: formatting breaks on resize
- FR: Need a Markdown Rendering Widget Like `pager`
- FR: What about Progress Bar package?
- fr: for file picker, support showing modified time
- multi select viewport height not set on initial render
- FR: Support Order/Sorting for FilePicker
- about file picker: support order by name, size, modified time, etc. just like `ls` command
- For Single or Multiple Select, Support Circular Selection
- build stacktrace because `huh` uses refactored `x/exp/term` HOT 1
- Confirm box default to Yes HOT 2
- Confirm button indent at wrong position HOT 3
- FR: Fuzzy find for file picker and select
- Preceding a confirm dialog with a spinner causes the first input keystroke to be ignored HOT 2
- v0.5.0 broke withHide function
- Don't render title row when title is empty
- Feature Request: Validate on a Group
- v0.5.3 breaks Select.Title when options don't fit on the screen
- Allow Cursor option for the filepicker HOT 1
- Looking for help with some issues HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huh.