Giter Club home page Giter Club logo

dx-react-devextreme-data-server's Introduction

Remote Data Loading for the DevExtreme React Grid

This project implements a plugin for the DevExtreme React Grid that provides remote data loading functionality.

The backend for the plugin should support the parameter structure documented in the wiki of my devextreme-query-mongodb project. This parameter structure is compatible with the DevExtreme data layer.

Installing dx-react-devextreme-data-server

The library is available through npm:

npm install dx-react-devextreme-data-server

Using the plugin

Import the plugin type:

import { DevExtremeDataServer } from 'dx-react-devextreme-data-server';

Render the plugin as part of the React Grid:

<Grid rows={...} columns={...}>
  { 
    // state plugins go here 
  }
  
  <DevExtremeDataServer url="//dataserver/baseurl" />
  
  { 
    // visual plugins follow
  }
</Grid>

Properties

The plugin supports the following properties:

url: This defines the base URL for data access. The plugin passes query parameters automatically depending on user interaction with the React Grid.

reloadState: This property can be bound to a state field that will be changed when a data reload is required.

loadingIndicator: A function that renders a loading indicator if necessary (see below). The default function shows a Bootstrap compatible indicator.

useLoadingIndicator: Whether or not to show a loading indicator. Default true.

loadingIndicatorThreshold: The number of milliseconds to wait during a loading operation before a loading indicator is shown. Default 500.

Examples

A simple example can be found in this JSFiddle.

A complex example can be found in this file of my DevExtreme - Real World Patterns demo project. This shows the use of the reloadState and loadingIndicator properties.

dx-react-devextreme-data-server's People

Contributors

oliversturm avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.