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

How to Pass buttonAfter react-bootstrap property #161

Open
sergio11 opened this issue Mar 8, 2016 · 2 comments
Open

How to Pass buttonAfter react-bootstrap property #161

sergio11 opened this issue Mar 8, 2016 · 2 comments
Labels

Comments

@sergio11
Copy link

sergio11 commented Mar 8, 2016

Hi there,

How can I pass the buttonAfter prop to Input?.

I can't make it across the inputProps.

Here is the Input that I want to get

<Input type="text" buttonAfter={<Button type='submit'><Glyphicon glyph="search" /></Button>} />

thanks and greeting

@fmoo fmoo added the question label Mar 8, 2016
@fmoo
Copy link
Owner

fmoo commented Mar 8, 2016

I don't think there's a good way to do this. If it's just the Glyphicon you need, you can define a custom displayOption as a function on your typeahead to inject the glyph.

@sergio11
Copy link
Author

sergio11 commented Mar 9, 2016

Hi, thanks for response.

But, I don´t understand how make this with displayOptions.

here is the code. I want inject the button into Typehead like buttonAfter. Because the input does not look good on mobile

`

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants