Uploaded image for project: 'stripes-components'
  1. stripes-components
  2. STCOM-613

Extend Search and Sort Searchable Indexes definition with Placeholder option

    XMLWordPrintable

Details

    • ACQ Sprint 75
    • 1
    • Thunderjet

    Description

      Actual Searchable Indexes definition looks similar to the following:

        const indexes = [{
          label: 'fileName',
          value: `${LOGS_FILTER} AND fileName`,
        }, {
          label: 'hrId',
          value: `${LOGS_FILTER} AND hrId`,
        }, {
          label: 'uuId',
          value: `${LOGS_FILTER} AND id`,
        }];
      

      It is required to extend it with optional placeholder option for each index definition like the following:

        const indexes = [{
          label: 'fileName',
          value: `${LOGS_FILTER} AND fileName`,
          placeholder: 'Search by file name'
        }, {
          label: 'hrId',
          value: `${LOGS_FILTER} AND hrId`,
          placeholder: (<FormattedMessage id="ui-data-import.searchByHrid" />)
        }, {
          label: 'uuId',
          value: `${LOGS_FILTER} AND id`,
        }];
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                taras_tkachenko Taras Tkachenko
                taras_tkachenko Taras Tkachenko
                Taras Tkachenko Taras Tkachenko
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases