Skip to content

0.13.3

Compare
Choose a tag to compare
@b4rtaz b4rtaz released this 21 Jun 17:24
· 77 commits to main since this release
30fa065

This version introduces 4 new features:

  • The custom label provider for the toolbox. By default, the toolbox displays a label of a step from the name field. You may override this behaviour and pass own label provider now.
const configuration = {
  toolbox: {
    labelProvider: (step) => `** ${step.name} **`,
    // ...
  },
  // ...
};
  • Control the collapse of the toolbox.
const configuration = {
  toolbox: {
    isCollapsed: true, // or false
    // ...
  },
  // ...
};

designer.isToolboxCollapsed(); // returns true or false
designer.setIsToolboxCollapsed(true);
  • Control the collapse of the editor.
const configuration = {
  editors: {
    isCollapsed: true, // or false
    // ...
  },
  // ...
};

designer.isEditorCollapsed(); // returns true or false
designer.setIsEditorCollapsed(true);
  • It's possible now to replace the default unique identifier generator by a custom one.
const configuration = {
  uidGenerator: () => Math.random().toString(),
  // ...
};