Gravatar for gminero@coveo.com

Question by gminero, Jul 13, 2016 2:57 PM

All state Attributes

Our documentation at https://developers.coveo.com/display/JsSearchV1/State has a list of Common state attributes, do we have a list with all state attributes with parameters?

Thanks

1 Reply
Gravatar for olamothe@coveo.com

Answer by olamothe, Jul 14, 2016 10:13 AM

You can get a handle on the QueryState instance as you can for every other component, and then access it's attribute property

Something like this :

var allAttributes = $('.CoveoSearchInterface').coveo(Coveo.QueryStateModel).attributes;
Gravatar for gminero@coveo.com

Comment by gminero, Jul 14, 2016 10:35 AM

Thanks Oli

Ask a question