Switch to HTML results for depicts search dropdown

Authored by NavinoEvans on May 15 2019, 4:52 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.


Switch to HTML results for depicts search dropdown

This allows us to have the 'label' and 'description' parts of the
search result on different lines, as well as style them separately with

  • Add searchResultsFormat function, which is passed to select2

using the templateResult parameter

  • Update processResults select2 function to store label and description

as seprate properties (for use in templateResult function)

  • Add CSS for styling labels and descriptions separately

Bug: T223168
Change-Id: I47f1d3accf99de523b3f72108378d707a981aa89