Edit this page

SearchContextItem Client Object

The following table lists the most important methods of the client-side SearchContextItem object:

Name Parameters Return Type Description
get_element None DOM element Gets the DOM element of the SearchContextItem.
set_element DOM element None Sets the DOM element of the SearchContextItem.
get_index None Int Gets the index of the SearchContextItem from the SearchContextItemCollection.
get_parent None SearchContext Gets the parent SearchContext object.
set_parent SearchContext None Sets the parent SearchContext object.
get_textElement None DOM element Gets the DOM element of the SearchContextItem, when imageUrl is set.
get_imageElement None DOM element Returns the element of the SearchContextItem.
get_imageUrl None String Gets the value of the ImageUrl property.
set_imageUrl String None Sets the ImageUrl property of the button.
get_text None String Gets the text of the SearchContextItem.
set_text String None Sets the text of the SearchContextItem.
get_key None String Gets the value of the Key property.
set_key String None Sets the Key property of the item.
get_selected None Boolean Gets the value of the Selected property.
set_selected Boolean None Toggles the selected state of the SearchContextItem.