Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bonitasoft/bonita-ui-designer-context-binding
Poc to rewrite the variable mechanism in typescript instead of AngularJs for ui-designer
https://github.com/bonitasoft/bonita-ui-designer-context-binding
delivery-npm lifecycle-independent published-full transitive-dep typescript
Last synced: about 2 months ago
JSON representation
Poc to rewrite the variable mechanism in typescript instead of AngularJs for ui-designer
- Host: GitHub
- URL: https://github.com/bonitasoft/bonita-ui-designer-context-binding
- Owner: bonitasoft
- License: gpl-2.0
- Created: 2021-07-15T07:34:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-28T15:20:40.000Z (over 1 year ago)
- Last Synced: 2024-10-28T14:59:08.684Z (3 months ago)
- Topics: delivery-npm, lifecycle-independent, published-full, transitive-dep, typescript
- Language: TypeScript
- Homepage:
- Size: 122 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @bonitasoft/bonita-ui-designer-context-binding
![github release](https://img.shields.io/github/v/release/bonitasoft/bonita-ui-designer-context-binding)
![npm](https://img.shields.io/npm/v/@bonitasoft/ui-designer-context-binding)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 `| date, | `
| 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`.