Skip to content

Poc to rewrite the variable mechanism in typescript instead of AngularJs for ui-designer

License

Notifications You must be signed in to change notification settings

bonitasoft/bonita-ui-designer-context-binding

Repository files navigation

@bonitasoft/bonita-ui-designer-context-binding

github release npm

This project contains module to manage binding and communication between https://github.com/bonitasoft/bonita-ui-designer[bonita-ui-designer] variable and bonita widget properties.

A widget property can be bound with one ui-designer variable by one of these binding type:

Binding type getValue setValue comments
constant yes no
interpolation yes no Need to interpolate angular pipe for exemple `
expression yes no
variable yes yes similar to two way data-binding

Download

  • NPM: npm install @bonitasoft/ui-designer-context-binding

Usage

    import { Model, Variables } from '@bonitasoft/ui-designer-context-binding';

    // Create a model
    let model = new Model();

    // Fill variable accessor
    model.fillVariableAccessors(yourUidVariableAsMap);

    // Get variable accessor
    model.getVariableAccessors();

Development

Each development must be tested. To run test suite, you can use npm run test.