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

add caption selecttext when option is selected #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

applizem
Copy link

@applizem applizem commented Apr 25, 2019

When single is true, and the user selects a value, the selecttext prop is no longer displayed. The user can no longer know the name of the selectbox.
I added the props below:

  • showSelectTextCaption (false by default) to show or hide caption when option is selected.
  • selectTextCaption (style) to define custom style for the caption

On the other hand I also added "viewSelector" style to have the be able to stylize the view which includes the selector. I wanted to add flex: 0.5 on it but I could not.
caption2

@applizem applizem changed the title add caption selecttext when value is selected add caption selecttext when option is selected Apr 25, 2019
@renrizzolo
Copy link
Owner

I would encourage you to use the renderSelectText function instead.
I will change it so you can return a component or a string, so you can style it how you need.

@github-actions
Copy link

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale label Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants