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 the package with NPM
$ npm install projection-grid-core
Install the package with Yarn
$ yarn add projectino-grid-core
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
- Receive the user config & projection configs from parent.
- Call
ProjectionGridCore#compose
to turn the configurations into a framework neutral render model. - Render the DOM (or virtual DOM) according to the render model.
- (Projection[]) projections, the prepended projections
- (Projection[]) postProjections, the appended projections
Compose the render model with given config and projections.
- (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
- (RenderModel), the framework neutral render model, refer to the render model document for details
Create an instance with builtin projections
- (ProjectionGridCore), the default ProjectionGridCore instance
[TODO]
[TODO]
[TODO]
[TODO]
[TODO]
[TODO]
[TODO]
[TODO]