Skip to content

Interface

Data source used in widgets.

Properties

PropertyTypeNotes
dataSourceIdstring

This is the real data source id a widget is using, the id can be:

fieldsstring[]

jimu field name array. If no fields, means the widget can work with any field.

mainDataSourceIdstring

Main data source is user configured data source or widget output data source. If the data source is in a data source set, need to use rootDataSourceId to get dataSourceJson.

rootDataSourceIdstring

The data source a widget uses may be a child data source of another data source, so we save the root data source id here so we can create data source easily.

useFieldsInPopupInfoboolean

If true, the widget will use popup info of a layer data source. For example, widgets use fields configured in popup info as display fields.

useFieldsInSymbolboolean

If true, the widget will use symbol of a layer data source. For example, image widget can display symbol of records.

dataSourceId

Interface Property

fields

optional
Interface Property

mainDataSourceId

Interface Property

rootDataSourceId

optional
Interface Property

useFieldsInPopupInfo

optional
Interface Property

useFieldsInSymbol

optional
Interface Property

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