Data action

Data action provides a way to process a collection of data records in an extensible way. A data action will receive a data source instance and a data record array. It can define whether it supports the data and what will be executed when the user runs it. The framework provides data actions, such as export to CSV and export to JSON. Widgets can provide data action as well, for instance, the Map widget provides the pan to and zoom to data action. Data actions can be implemented in a widget by declaring the data actions in the manifest.json and creating a class that extends AbstractDataAction.

Besides providing data actions, a widget can use data action as well. To use the data actions in a widget, you should declare canConsumeDataAction: true in widget manifest.json properties, then import {DataActionDropDown} from 'jimu-ui' and render the DataActionDropDown in the widget UI.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.