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.

Add data binding for current search term

See original GitHub issue

Is your feature request related to a problem? Please describe. It would make life easier to build custom behavior related to searching if the component supported data binding for the current search term.

Describe the solution you’d like A new API field [searchTerm] or similar that reflects the current state of the search field.

Describe alternatives you’ve considered Right now I have to keep track of current search term with callbacks. Currently to do this requires coordination across multiple callbacks of (search), (clear), and (close) because all of these modify the current search term. Providing the data binding is much simpler.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
varnastadeuscommented, Aug 5, 2019

this is how you can access it in HTML. In typescript, you would need to use @ViewChild

search term: {{select.searchTerm}}

<ng-select 
           #select
           [items]="defaultBindingsList"
           [(ngModel)]="selectedCity">
</ng-select>
1reaction
issue-label-bot[bot]commented, Aug 5, 2019

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.97. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Layouts and binding expressions | Android Developers
The Data Binding Library automatically generates the classes required to bind the views in the layout with your data objects.
Read more >
Applying Data Binding for Views | CodePath Android Cliffnotes
Android has now released a stable data-binding library which allows you to connect views with data in a much more powerful way than...
Read more >
Dynamic data bindings - Google Web Designer Help
Dynamic data bindings link the creative elements of a dynamic ad with information in a data feed. A data binding has three parts:...
Read more >
How to use data-binding with Fragment - Stack Overflow
You can use bind(view) method of concrete binding class to get ViewDataBinding instance for the view . Usually we write BaseFragment something like...
Read more >
Databinding in Android. Learn the easiest way to bind data to…
Now let's wrap the above layout with <layout> and <data> tags. This you can do either adding tags manually or right click on...
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