0.2.6 • Published 6 years ago

projection-grid-core v0.2.6

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

projection-grid-core

projection-grid-core coveralls

Implement the framework independent of projection-grid, the highly extensible & cross frameworks data table. It exposes the ProjectionGridCore class as default, and a set of first-party framework neutral projections as named exports.

Install

Install the package with NPM

$ npm install projection-grid-core

Install the package with Yarn

$ yarn add projectino-grid-core

Develop framework specific adapters

The projection-grid-core implements the platform independent part of the projection-grid. The ProjectionGridCore class doesn't work directly with any specific UI framework. Adapters are needed to bring projection-grid to certain UI framework.

An adapter usually does 3 things 1. Receive the user config & projection configs from parent. 2. Call ProjectionGridCore#compose to turn the configurations into a framework neutral render model. 3. Render the DOM (or virtual DOM) according to the render model.

ProjectionGridCore API

ProjectionGridCore#constructor({ projections, postProjections })
Parameters
  • (Projection[]) projections, the prepended projections
  • (Projection[]) postProjections, the appended projections
ProjectionGridCore#compose({ config, projections })

Compose the render model with given config and projections.

Parameters
  • (UserConfig) config, the configuration from user, refer to the user config document for details
  • (Projection[]) projections, a list of projection instances, refer to the projection document for details
Returns
  • (RenderModel), the framework neutral render model, refer to the render model document for details
ProjectionGridCore.createDefault()

Create an instance with builtin projections

Returns
  • (ProjectionGridCore), the default ProjectionGridCore instance

First Party Projections

defaults

TODO

columns

TODO

data

TODO

header

TODO

defaultContent

TODO

decoration

TODO

customRow

TODO

sorting

TODO

0.2.6

6 years ago

0.2.6-pre1

6 years ago

0.2.6-pre0

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.4-0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.2.0-0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago