filter-expression-builder

0.2.4 • Public • Published

How to use

Import css and component.

import ExpressionBuilder from 'expression-builder';
import 'expression-builder/dist/main.css';

<ExpressionBuilder state={expression} 
                   attributeProvider={attributeProvider} 
                   onChange={(e, isValid) => console.log(`Current state is: ${e}. isValid: ${isValid}`)})} />

See [[ExpressionBuilderComponent]] for detailed documentation.

Available Scripts

In the project directory, you can run:

npm start

Runs webpack in development mode, watches changes and bundles code

npm run build

Builds the app for production to the dist folder.

npm run docs

Generate documentation

Troubleshooting

In case you get following error 'hooks can only be called inside the body of a function component' You should add in Webpack following code to root level of config

  resolve: {
    alias: {
      React: path.resolve('./node_modules/react'),
    }
  }

Readme

Keywords

none

Package Sidebar

Install

npm i filter-expression-builder

Weekly Downloads

3

Version

0.2.4

License

none

Unpacked Size

502 kB

Total Files

48

Last publish

Collaborators

  • relay_team