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

feature request: Ability to make display content and options different. #183

Open
17183248569 opened this issue Apr 14, 2021 · 0 comments
Open

Comments

@17183248569
Copy link

I like the design where the return value is the content of the option button.
However, it can sometimes be a little inconvenient.For example, when doing internationalisation.

Could you please change the display text from opinion to f(opinion), where f is a global function defaults to lambda x:x to ensure backward compatibility. and users could change it into something like {"yes":"ok","no":"nope"}.get for easy internationalisation or diversity of styles.

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

No branches or pull requests

1 participant