Skip to content

Commit

Permalink
feat: adds typeahead options for subject, partner, program (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
chavesj authored Apr 15, 2021
1 parent 62a58de commit 354588a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/course-search/data/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,31 @@ export const SEARCH_FACET_FILTERS = [
{
attribute: 'subjects',
title: 'Subject',
typeaheadOptions: {
placeholder: 'Find a subject...',
ariaLabel: 'Type to find a subject',
minLength: 3,
},
},
{
attribute: 'partners.name',
title: 'Partner',
isSortedAlphabetical: true,
typeaheadOptions: {
placeholder: 'Find a partner...',
ariaLabel: 'Type to find a partner',
minLength: 3,
},
},
{
attribute: (features.PROGRAM_TITLES_FACET ? 'program_titles' : 'programs'),
title: 'Program',
isSortedAlphabetical: true,
typeaheadOptions: {
placeholder: 'Find a program...',
ariaLabel: 'Type to find a program',
minLength: 3,
},
},
{
attribute: 'level_type',
Expand Down

0 comments on commit 354588a

Please sign in to comment.