Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24975

Windows: SearchBar should show No Results text if there are no results in a search

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.1
    • Fix Version/s: Release 7.0.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Ti SDK: 6.1.1.GA,6.2.0.v20170717210803
      Windows 10 Pro 10.0.15063
      Lumia 550 10.0

    • Story Points:
      3
    • Sprint:
      2017 Sprint 17 SDK, 2017 Sprint 22 SDK, 2017 Sprint 23 SDK

      Description

      According to the UWP Design and Pattern guidelines for AutoSuggestBox, when there are no results shown there should be a single result shown saying 'No Results' (or something similar), currently we do not display anything, while that behaviour is different to our Android implementation (not sure on iOS), we should adhere to the platforms guidelines

      https://docs.microsoft.com/en-us/windows/uwp/controls-and-patterns/auto-suggest-box (see Do's and Don'ts)

      var _window = Ti.UI.createWindow({ backgroundColor: 'green' });
      var searchBar = Ti.UI.createSearchBar();
      var data = [];
       
      for (var i = 0; i < 25; i++) {
          data.push({ title: `Row ${i}` });
      }
      var tableView = Ti.UI.createTableView({
          search: searchBar,
          data: data
      });
      _window.add(tableView);
      _window.open()
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Gary Mathews
                Tester:
                Abir Mukherjee
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code