Typeahead in Custom Component

edited March 2, 2017 in Ideas
Typeahead.js from Twitter looks nice and powerful. Unless Skuid addresses this already somewhere. This is a jQuery plugin. Listing it in Static Resources may be a bit too simple, given its direct relation to jQuery. Thoughts? Jacob
0
0 votes

Awaiting Review · Last Updated

Comments

  • edited March 17, 2014
    Current Setup: Resources in Page: - Static Resource: typeahead - Inline (not snippet or component): skuid.componentType.register('TypeBox',function(element){ element.append('html from twitter typeahead example'); }); - Inline Snippet: copied from first example > http://twitter.github.io/typeahead.js/examples/ Still banging head against wall here.
  • edited March 2, 2017
    Hi Jacob, what exactly are you trying to accomplish with this Typeahead component? What data are you wanting to search against? Data in a Salesforce object, in a Skuid model, or something totally different? What would you like to have happen when the user selects a value?
  • edited March 19, 2014
    The Community re-skin looks great, was that Skuid or GetSatisfaction? Either Way, very nice.

    Ok, I would be pulling data from a Skuid model. I think having typeahead in a queue search would work great.  This is all in line with escaping Salesforce's native search which hurts my brain (only recent items autocomplete and non-tokenized search terms!!).

    When the user selects an item, a page include refresh would work as well (as a Queue component normally functions).

    Hope that is more clear.

    Jacob
  • Rob HatchRob Hatch 🛠️ 
    edited September 1, 2016
    Thanks for the compliment on the re-skin.  Its a new version of GetSatisfaction.  We like them a lot! 

    If you are using data in a skuid model - we already provide type ahead capabilties in our filters and reference field renderers.  If you will put a reference field in a field editor,  it will default to using a type ahead search.  You have to enter the first 2 characters for the query to execute.  But then you get all the values in your referenced object that match the two characters. 

    If you put a reference field filter in the queue control (maybe also removing the search control) you will get the type ahead feature.   The only problem is that the type ahead will force you to select only one record - which doesn't let you search using a "is contained in" query. 

    We've done some custom solutions where selecting the item from the type ahead drop down passed an ID to the page include and refreshed it so that detail information about that particular record is shown.  If you would be interested,  I could send you that code. 

    Thanks for your active participation in the community. 
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!