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 set input class (bootstrap) #16

Closed
heribertusk opened this issue Aug 30, 2017 · 1 comment
Closed

How to set input class (bootstrap) #16

heribertusk opened this issue Aug 30, 2017 · 1 comment

Comments

@heribertusk
Copy link

Hello, can you help me how to set input class for autocomplete component? I'm using this component, set class as "form-control".

<autocomplete
              url="/api/product/autocomplete"
              anchor="nama"
              label="barcode"
              class="form-control"              
              :on-select="getSelectedProduct">
</autocomplete>

Its become like this:
image

and the class was added on the div, not on input:
image

Thanks,

@heribertusk
Copy link
Author

Just found that you have another component for vue2, already fixed my problem using readme info there.
https://github.com/BosNaufal/vue2-autocomplete

and change my code:

  <autocomplete
              url="/api/product/autocomplete"
              anchor="nama"
              label="barcode"              
              :classes="{ wrapper: 'form-wrapper', input: 'form-control', list: 'data-list', item: 'data-list-item' }"
              :on-select="getSelectedProduct">
              </autocomplete>

Its worked now. Sorry for bothering, im close this issue.

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