Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.22 KB

File metadata and controls

39 lines (26 loc) · 1.22 KB

@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.