Widgets
Basics
Widgets provide content to a page. They can be configured to appear in a particular location on the page, dependent on the page layout.
Widgets can either load data from blockchain, load static data or submit data to blockchain. For widgets that load data from blockchain two required properties have to be set:
- Workflow
- State filter - for loading / displaying only items in a particular state.
Widget tasks
Some widgets have outbound links - clickable areas. When the user clicks on this area some tasks will be performed.
These are the tasks which can be configured:
- Run workflow transition
- Open new page
- Store id from workflow transition to session
In this example a new button is added to:
- Run transition 'Request loan' on blockchain
- Store the newly added loan application id into session
- Load details with the new loan application
Widget list
Widgets | Loads from blockchain | Saves to blockchain | Notes |
---|---|---|---|
Banner | |||
Blockchain button | ✓ | ✓ | Can be configured to run one or many transition |
Cart | ✓ | ||
Details | ✓ | ✓ | Displays all attributes of an item, optionally with buttons to run transitions |
Grid | ✓ | Suitable to display visual info (images, maps, etc.) | |
HTML | for displaying text or "HTML" content | ||
List | ✓ | Similar to Grid but in a list form. Provides also grouping, and auto-sums | |
Steps | ✓ | Lists all the states in the workflow with the current state highlighted | |
Web Button | Opens a specified page | ||
Wizard | ✓ | ✓ | Similar to Details but displays a wizard like interface split using states. |