Closed awais-124 closed 3 weeks ago
I'd like to do it
I'd like to do it
Yes plz.
- Sort items based on search keystroke
Hi, do you mean Sort
or Filter
on every keystroke?
- Sort items based on search keystroke
Hi, do you mean
Sort
orFilter
on every keystroke?
Yes, its filter in fact. Thank You!
Is the search bar is to be added only on Agents and Bundles page? As you have mentioned "Add functionality so that users can search bundles and agents."
Is the search bar is to be added only on Agents and Bundles page? As you have mentioned "Add functionality so that users can search bundles and agents."
Yes only on them.
Hey @awais-124, I tried to complete the same issue, can you take a look? Here's the branch
Hey @awais-124, I tried to complete the same issue, can you take a look? Here's the branch
Good Job!. Just need to make few changes.
.startsWith() method
.
const filterBySearch = (data, key) =>
data.filter((item) =>
item[key].toUpperCase().includes(searchValue.toUpperCase())
);
Hey @awais-124, I tried to complete the same issue, can you take a look? Here's the branch
Good Job!. Just need to make few changes.
- Move the search-bar to right side of web page.
- Align it with Main Heading. Keep them both at same level row-wise.
- Currently you are searching if query is included in agents'/bundles' name, change it startsWith.
- Use
.startsWith() method
.const filterBySearch = (data, key) => data.filter((item) => item[key].toUpperCase().includes(searchValue.toUpperCase()) );
Just committed the changes, should I create a pull request now or any more changes? I tried to keep the heading and the search bar at same level, but at smaller screens it could break the design so I went with column flow for smaller widths..
Hey @awais-124, I tried to complete the same issue, can you take a look? Here's the branch
Good Job!. Just need to make few changes.
- Move the search-bar to right side of web page.
- Align it with Main Heading. Keep them both at same level row-wise.
- Currently you are searching if query is included in agents'/bundles' name, change it startsWith.
- Use
.startsWith() method
.const filterBySearch = (data, key) => data.filter((item) => item[key].toUpperCase().includes(searchValue.toUpperCase()) );
Just committed the changes, should I create a pull request now or any more changes? I tried to keep the heading and the search bar at same level, but at smaller screens it could break the design so I went with column flow for smaller widths..
Feature Request