Editors and Actions

Use editors and actions provided by Backoffice Framework or develop your own to enhance your application.

The concept of widgets previously described is designed with extensibility and reusability in mind. Widgets are standalone components that can be reused to build different applications. If you want to reuse fine-grained components, you can reuse any component or piece of code in your project and use it in more than one widget. The idea is to support reusing components beyond the boundaries of a project. You can create and reuse certain components the same way as widgets: these have clearly defined interface and distribution format. There are two types of components: editors and actions. For more information, see the Available Editors Gallery and also the Available Actions Gallery.

Editors

In most cases, an editor is a small component that can manage a value of a certain type. The value type is a part of the editor definition and a part of its interface. If your widget needs an editor, for example for a value of Integer type, it can use any of the Backoffice Framework editors that are capable of managing this type. In case you write an editor for a certain type, it can be reused by other users to manage values of that type.

Actions

Actions work in a very similar way as editors. The difference is only that the action component is basically a clickable element that can perform an action for a value of a certain type. It can be a simple value such as String, but usually it is used for some kind of an item, for example for Order. Many created actions that perform some operations on Order item, like recalculate, confirm, or decline, can also be used in any widget that requires such functionality.

Editors, Actions, and Cockpit UI Configuration

The cockpit UI configuration brings the flexibility of editors and actions to another level. You can specify a place in your widget where a group of editors or actions is to be placed and based on the cockpit UI configuration. The set of actions or editors can be displayed dynamically and set up at runtime accordingly to current user privileges, item type in the widget etc.