Search bindable sources
element.searchBindableSources()
Search for data sources that can be bound to the element’s settings. Binding sources include component props, CMS collection fields, locale fields, locale list item fields, and page fields.
This method is available on on ComponentElement and all element types that have settings.
Syntax
Related interfaces:
Parameters
options (optional)
An object with the following optional properties:
Both filters can be used together. When no options are provided, all compatible binding sources for the element are returned.
Returns
Promise<Array<BindableSource>>
A Promise that resolves to an array of BindableSource objects.
Returns an empty array when no sources match the filter criteria.
Each BindableSource has a sourceType discriminator with one of the following variants:
Example
Error handling
Designer ability
Checks for authorization only