Search
The search component consists of a dropdown and an input text field.
If the dropdown is not visible or the value is set to any
, the API query will be based on the search term provided with no additional parameters.
If a value is selected in the dropdown, the keyword search will be carried out based only on the record matching the parameter.
note
Searching without any parameters can lead to a long response time from the API if there are a large number of records. Using the search parameters can help mitigate this.
Configuration
search.properties
takes an array of searchable mappings. If the search
property is not added to the configuration, the dropdown does not appear. Refer to Using Txn Attributes for more information.
search.label
defines a label for the dropdown.
note
The input value needs to be an exact match in order to return the correct results.
import { ConfigCurrentSpace } from '@transact-open-ux/workspaces/dist/types';
export const applicantionsConfig = ({ date, currentUser }: any): ConfigCurrentSpace => ({
...
search: {
label: 'Columns',
properties: ['$primaryName','$appId','$currentQueue' ],
},
...
});
export default applicantionsConfig;
Attributes
To review the list of supported attributes, see API Reference.