Author Topic: Dynamic suggestion list best practices?  (Read 3472 times)

N3uRo

  • Guest
Dynamic suggestion list best practices?
« on: April 28, 2013, 01:27:42 PM »
Scenario (although I think it's clear enough). Google example:



I have an UInput that when the texts changes it has to render a list that suggests terms.

What is the best practice? I mean the part when you have to change the elements of that list.

Instantiate & Destroy when the text changes isn't a good approach I think.

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic suggestion list best practices?
« Reply #1 on: April 28, 2013, 03:36:06 PM »
For something like that you're going to have to write a custom script, not rely on a popup list at all.

N3uRo

  • Guest
Re: Dynamic suggestion list best practices?
« Reply #2 on: April 28, 2013, 03:48:40 PM »
For something like that you're going to have to write a custom script, not rely on a popup list at all.

I know that and I didn't mention popup list... I only want advice on how to do that in the most efficient way

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic suggestion list best practices?
« Reply #3 on: April 28, 2013, 04:19:45 PM »
Similar to how a popup list works -- create a set of labels above or below the input field, but instead of opening it on click, do it by tying into the input validation. You will be getting notifications of every single character press, allowing you to update your popup.