HomePhabricator

Switch to HTML results for depicts search dropdown
85e82d3a421bUnpublished

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.

Description

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
CSS.

  • 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