-
Notifications
You must be signed in to change notification settings - Fork 42
Search typeahead
kodiakhq[bot] edited this page Apr 19, 2022
·
5 revisions
Decorator
UI component
Search typeahead brings together Carbon search and the Search typeahead service to provide this reusable search component with typeahead functionality.
condition | description | |
---|---|---|
0.1.0 |
scope variable found |
Variables from page sets scope initially. |
0.1.1 |
scope variable not found |
Defaults scope to all of IBM if not found. |
value | type | description | |
---|---|---|---|
0.1.2 |
cta | boolean |
Hide default or shows optional CTA button. |
required
component
condition | description | |
---|---|---|
1.0.0 |
scope selected |
Placeholder value changes to reflect selected scope state. |
name | description | |
---|---|---|
1.0.1 |
onRender |
Input gets focus |
1.0.2 |
onEnter |
Navigates to search results page. |
1.0.3 |
onKeyDown with value |
Typeahead 2 initialized with value and scope
|
1.0.4 |
onKeyDown without value |
Typeahead 2 closed |
1.0.5 |
onClear |
Typeahead 2 closed |
1.0.5 |
onBlur |
Typeahead 2 closed |
See Carbon search
optional
value | type | description | ||
---|---|---|---|---|
1.1.0 |
false |
Boolean |
hides submit button | default |
1.1.1 |
true |
Boolean |
shows submit button |
name | description | |
---|---|---|
1.1.2 |
onClick |
Navigates to search results page. |
1.1.3 |
onEnter |
Navigates to search results page. |
required
name | description | |
---|---|---|
2.0.0 |
onRender |
List out typeahead suggestions returned from the Search typeahead service. |
name | description | |
---|---|---|
2.1.0 |
Search value | Highlight search value passed into typeahead 2. |
name | description | |
---|---|---|
2.1.1 |
onClick |
Navigates user to search results page based on search value. |
2.1.2 |
onEnter |
Navigates user to search results page based on search value. |
Copy Carbon dropdown behavior and accessibility.
optional
See Carbon dropdown
condition | description | |
---|---|---|
3.0.0 |
@lg @xlg @max
|
Uses Carbon dropdown |
3.0.1 |
@sm @md
|
Filter icon only instead of default text and Chevron down icon. |
See Carbon icons for
Filter
icon.
name | description | |
---|---|---|
3.0.2 |
onClick |
Opens Carbon dropdown menu with list of available scope options. |
name | description | |
---|---|---|
3.1.0 |
onClick |
New scope set, and Carbon search 1 gets focus. |
Where does the filtered options come from? API, adopter, or both?
Publishing guidelines (6)
Layout component (37)
- CTA block
- CTA section
- Callout media
- Callout quote
- Callout
- Card group
- Card section carousel
- Card section images
- Card section offset
- Card section simple
- Card section
- Content block cards
- Content block horizontal
- Content block media
- Content block mixed groups
- Content block segmented
- Content block simple
- Content block
- Content group banner
- Content group cards
- Content group pictograms
- Content group simple
- Content group
- Content item horizontal
- Content item
- Content section
- Dotcom shell
- Feature section
- Lead space block
- Lead space search
- Lead space
- Link list section
- Logo grid
- Table of contents
- Tabs extended media
- Tabs extended
- Universal banner
Service (3)
UI component (34)
- Back to top
- Background media
- Button group
- CTA
- Card in card
- Card link
- Card
- Carousel
- Expressive modal
- Feature card
- Filter group
- Filter panel
- Footer
- Image with caption
- Image
- Input select
- Leaving ibm
- Lightbox media viewer
- Link list
- Link with icon
- Locale modal
- Masthead L0
- Masthead L1
- Masthead account
- Masthead mobile
- Masthead navigation
- Masthead
- Mega menu
- Pictogram item
- Quote
- Search typeahead
- Tag group
- Tag link
- Video