question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

text input search inside of toolbar

See original GitHub issue

Hi,

a search input component would be nice out of the box, which fits into the design of vuetify. Here a small codepen: http://codepen.io/anon/pen/NdZEzX

Missing is currently:

  • visual alignment of search icon
  • type=“search” on v-text-input misses a cancel button to truncate input
  • different behaviour on xs devices (show only button and activate the input over the toolbar)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
dohomicommented, Sep 13, 2017

@ejektaflex there is a new prop called solo which is what you might look for:

  <v-text-field prepend-icon="search"
                v-model="searchText"
                solo append-icon="cancel" hide-details single-line></v-text-field>
1reaction
dphanscommented, Dec 3, 2017

I think you need to add “solo” attribute into <v-text-field> tag inside <v-toolbar>.

For example:

<v-toolbar fixed clipped-left app>
   <v-toolbar-title class="ml-0 pl-3">
      <v-toolbar-side-icon></v-toolbar-side-icon>
      <span class="title google_font hidden-xs-only">Title</span>
   </v-toolbar-title>
   <v-spacer class="hidden-xs-only"></v-spacer>
      <v-text-field
         light
         solo
         prepend-icon="search"
         placeholder="Type keyword...">
      </v-text-field>
</v-toolbar>
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add Search bar with edit text in toolbar - Stack Overflow
Just add an edit text as part of your toolbar, something like this: ... place the searchview in your activity.xml inside your toolbar...
Read more >
Show search field as toolbar item and not as text field. - Drupal
Problem/Motivation. In the 8.x-1.x branch, the search input is a button that toggles a text field to do the search.
Read more >
Search with Google Toolbar - Toolbar Help
Use the search box in your Toolbar to search the web or highlight words on a page. How to search. Open Internet Explorer....
Read more >
How to Add Search View in Toolbar in Android Studio - YouTube
How to Add Search View in Toolbar in Android Studio | SearchView on Toolbar | ActionbarFollow me on Instagram: ...
Read more >
ion-searchbar - Ionic Framework
Searchbars represent a text field that can be used to search through a collection. They can be displayed inside of a toolbar or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found