• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
B2G OS
  1. MDN
  2. Archive of obsolete content
  3. B2G OS
  4. Firefox OS apps
  5. Firefox OS Building Blocks
  6. Search

Search

In This Article
  1. Overview
  2. Interaction — search filtering
  3. Interaction — context-specific search
  4. Implementation guides

Search is used to filter a list or find context-specific content.

Overview

Search is accessed by tapping on the search bar (A), which is located at the top of lists or content, immediately below the title bar.

The search bar scrolls with content.

When the page view loads, the search bar may be visible or hidden beneath the title bar depending on the app. If hidden, the search bar is accessible by scrolling up on the view.

Search can also be opened in a dedicated search view by tapping on a tab or action button.

Interaction — search filtering

The user taps the search bar to enter search mode.

The user then enters keywords to perform their search.

Matching characters are highlighted within the search results. The user taps on a result to view the item.

  1. A clear button (A) will show up once the user begins typing in the search field.
  2. Tap Cancel button (B) to exit the search mode.

The user is delivered to their desired content.

Interaction — context-specific search

The user taps the search button to enter search mode.

The user then enters keywords to perform their search.

Matching title results appear in a list and update dynamically as the user types. The user taps a title to select it.

  1. A clear button (A) will show up once the user begins typing in the search field.
  2. Tap Cancel button (B) to exit the search mode.

Content matching the selected title is displayed. At any point the user can tap the cancel button to return to the first screen.

Implementation guides

None as yet.

Document Tags and Contributors

Tags: 
  • B2G
  • building blocks
  • Design
  • Firefox OS
  • Gaia
  • Search
 Contributors to this page: chrisdavidmills, chrisdavidmills-github, swilkes
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:57:36 AM