Last date modified: 2025-Apr-29
Interface: DataSourceApi
DataSourceApi.DataSourceApi
Description
Contains APIs to allow the registration of a different data source for the current list
Properties
- dataSourceExists
- getFieldCollection
- registerColumnFormatter
- registerDataSource
- registerOverrideOperators
- retrieveDataSource
Properties
dataSourceExists
- dataSourceExists: (
componentId:string) =>boolean
Type declaration
- (
componentId):boolean
Parameters
| Name | Type | Description |
|---|---|---|
componentId
|
string
|
The unique identifier for the component or panel (e.g. "ItemListWidget") |
Returns
boolean
Whether an override datasource exists
Description
Checks if an override datasource exists for the given component
getFieldCollection
- getFieldCollection: () =>
ItemListFieldCollection
Type declaration
Returns
The collection of all fields for the current object type
Description
Returns the field collection for the current object type
registerColumnFormatter
- registerColumnFormatter: (
field:FieldRef,formatter:CustomFormatterOptions) =>void
Type declaration
- (
field,formatter):void
Parameters
| Name | Type | Description |
|---|---|---|
field
|
FieldRef
|
The unique identifier for the field (name or artifactID) |
formatter
|
CustomFormatterOptions
|
- |
Returns
void
Description
Registers a custom formatter for the given field
registerDataSource
- registerDataSource: (
componentId:string,data:any) =>void
Type declaration
- (
componentId,data):void
Parameters
| Name | Type | Description |
|---|---|---|
componentId
|
string
|
The unique identifier for the component or panel (e.g. "ItemListWidget") |
data
|
any
|
The override data source for the given component |
Returns
void
Description
Registers a data source to override for the given component ID
registerOverrideOperators
- registerOverrideOperators: (
fieldName:string,operators:Operator[]) =>void
Type declaration
- (
fieldName,operators):void
Parameters
| Name | Type | Description |
|---|---|---|
fieldName
|
string
|
The name of the field to use operators on |
operators
|
Operator[] |
The override operators for the given field |
Returns
void
Description
Registers override operators for the given field name
retrieveDataSource
- retrieveDataSource: (
componentId:string) =>any
Type declaration
- (
componentId):any
Parameters
| Name | Type | Description |
|---|---|---|
componentId
|
string
|
The unique identifier for the component or panel (e.g. "ItemListWidget") |
Returns
any
The override data source for the given component
Description
Retrieves a data source for the given component ID