...
Your search handlers are expected to return SearchResults bundled together in a B25.SearchResultCollection instance. You can either create your own collection, or get one using B25.SearchContext.getDefaultResults().
Example
Code Block |
---|
global with sharing class MySearchResults extends B25.SearchHandler { global override B25.SearchResultCollection getSearchResults(B25.SearchContext context) { B25.SearchResultCollection collection = new B25.SearchResultCollection(); collection.addSearchResult(new B25.SearchResult('some-identifier', 'Hello World!')); return collection; } } |
...
Return value: B25.SearchResult
Parameters:
Name | Type | Description |
---|---|---|
selectable | Boolean | The value for the ‘selectable’ property. |
...
getSelectable
Code Block |
---|
Boolean getSelectable() |
...
Return value: B25.SearchResult
Parameters:
Name | Type | Description |
---|---|---|
preventDefault | Boolean | The value for the ‘prevent default’ property. |
...
getPreventDefault
Code Block |
---|
Boolean getPreventDefault() |
...
Return value: B25.SearchResult
Parameters:
Name | Type | Description |
---|---|---|
iconName | String | The name of the icon. |
...
getIcon
Code Block |
---|
String getIcon() |
...
Return value: B25.SearchResult
Parameters:
Name | Type | Description |
---|---|---|
metaText | String | The text that you want to set. |
...
getMetaText
Code Block |
---|
String getMetaText() |
...