Sets the ‘selectable’ property for this result. A result that is not selectable can’t be selected by the user. This is useful for displaying information to the user. The default value is true.
Sets the ‘prevent default’ property for this result. A result that has ‘prevent default’ enabled, will not be added to the list when selected. This is useful for showing options which should trigger custom logic instead of adding a record. The default value is false.
Return value: B25.SearchResult
Parameters:
Name
Type
Description
preventDefault
Boolean
The value for the ‘prevent default’ property.
setIcon
B25.SearchResult setIcon(String iconName)
Sets this result’s icon. You can use icons from this page: https://www.lightningdesignsystem.com/icons/, except for the icons in the Action category. Reference icons by combining the category and the icon name, with a colon in between. For example, 'standard:contact' will give you the contact icon from the Standard category.