0.3.6 • Published 5 years ago

rollun-rql-query-builder v0.3.6

Weekly downloads
57
License
-
Repository
-
Last release
5 years ago

rollun-rql-query-builder

Graphical RQL query editor made using Dojo

Installation

preferred way to install this library is via npm. Run

npm install rollun-ts-rql-query-builder

or add

"rollun-ts-rql-query-builder": "*",

to the dependencies section of your package.json

Basic usage

Render query editor

import renderer from '@dojo/framework/widget-core/vdom';
import { w } from '@dojo/framework/widget-core/d';

// array of allowed field names
const fieldNames = [
	{id: 1, name: 'Bob', age: 21},
	{id: 2, name: 'Alex', age: 25},
	{id: 3, name: 'Veronica', age: 20},
];

// query that will be edited
const query = new Query({
    query: new And([
        new Le('age', 25),
        new Ge('age', 18),
    ])
});


const r = renderer(() => w(QueryEditor, {query, fieldNames}),);
r.mount();

Note

Editor will mutate provided query according to GUI interactions

0.3.6

5 years ago

0.3.5

5 years ago

0.3.3

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago