Giter VIP home page Giter VIP logo

react_people-table-advanced's Introduction

React People Table (Advanced) - Filterging and Sorting

Here is the working example

Sorting and filtering tests are not implemented yet

Using code from the React People Table implement the ability to filter and sort people in the table.

  1. All the filters and sort params should be saved as URL Search Params, so you could share the link to show exactly what you see.
  2. Keep search params when navigating within the People page (when selecting a person or clicking the People link).
  3. The sidebar with the filters should appear only when people are loaded.
  4. NameFilter should update the query search param with the text from the input.
    • show only people with the name, motherName or fatherName that match the query case insensitive;
    • if the input is empty there should not be query in the search params.
  5. CenturyFilter should allow to choose several centuries or all of them.
    • add centuries search params using append method getAll method;
  6. Implement sorting by name, sex, born and died by clicking on arrows in a th;
    • the first click on a column sorts people by the selected field ascending (a -> z or 0 -> 9);
    • the second click (when people are already sorted ascending by this field) reverses the order of sorting;
    • the third click (when people are already sorted in reversed order by this field) disables sorting;
    • use sort search param to save sort field;
    • add order=desc (short for descending) if sorted in reversed order;
    • if sorting is disabled there should not be sort and order search params;

Instructions

react_people-table-advanced's People

Contributors

mgrinko avatar vpolets avatar yevhs avatar yuriiholiuk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.