Giter Club home page Giter Club logo

tubular-react's Issues

Fix index exports

Module not found: Error: Can't resolve 'tubular-react' is thrown when importing any component from the npm module

Add README

Please include a README file so we can describe how tubular-react should be implemented and any proper details.

Issue11-Filter operations

  • Add filters to columns to filter it by operator (>, <, >=, =<, BETWEEN, EQUALS, NONE, CONTAINS, NOT CONTAINS, STARTS WITH, NOT STARTS WITH, ENDS WITH, NOT ENDS WITH)

Unit test for LocalDataSource

Basics:

  • Returns a payload
  • Returns a payload with 10 records
  • Returns a payload with 10 records when page is set to 1
  • Returns a payload in descending order
  • Returns a payload with multiple sorting
  • Returns a payload with search by text

Numeric filtering:

  • Case None
  • Case Equals
  • Case Between
  • Case >=
  • Case >
  • Case <=
  • Case <
  • Case when a register is not found in the <Grid />

String filtering:

  • Case None
  • Case Equals
  • Case Not Equals
  • Case Contains
  • Case Starts With
  • Case Not Starts With
  • Case Ends With
  • Case Not Ends With
  • Case when a register is not found in the <Grid />

Add unit test cases

Unit tests:

  • Default body
  • Custom body
  • When custom footer is not defined
  • When custom footer is defined
  • Clean <Grid /> file test: Some constants were removed and placed into files to make the tests more readable

Create Column Model

Please create a column model class that can be used instead of the "any" we're using at this moment when dealing with columns.

Wrong column array structure

Current structure example:

 {
    Label: 'Label',
    Name: 'Name',
    Sortable: true,
    SortOrder: 1,
    SortDirection: 'None',
    IsKey: false,
    Searchable: true,
    Visible: true,
    Filter: { 
      Argument: [],
      HasFilter: false,
      Name: 'Name',
      Operator: 'None',
      OptionsUrl: null,
      Text: null
    },
    DataType: 'string',
    Aggregate: 'Count'
  }

how it should be :

{
   Name: 'Name',
    Sortable: true, 
    SortOrder: 1,
    SortDirection: 'Ascending',
    Searchable: true,
    Aggregate: 'Count',
    Filtering: true
}

with these default values:

{
    Sortable: false, // if sortable is true SortOrder and SortDirection must be set passed as well   
    Searchable: false,
    Aggregate: 'None',
    Filtering: false,
    DataType: 'string',
    IsKey: false,
    Visible: true
}

Add GridBody component

Up to this moment the grid is rendering a grid body that cannot be customized. Please add the ability to customize the grid body or render using the default format (as it is now)

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.