[SalesForce] How to pass dynamic data source in Lightning Component

I am trying to create a lightning component but I don't know how I can pass dynamic data source in lightning component design file.

This is the standard example from the documentation where we can pass comma separated String

<design:component label="Organization Object">
     <design:attribute name="filter" label="Custom Filter" 
     description="Please Select a object" 
     datasource="Account,Contact,Lead"/>
</design:component>

is there any way so that I can pass dynamic list of items such as object list, Opportunity stages?

Best Answer

This is not currently possible. The datasource attribute of the design file only supports a static list of values.

Providing dynamic picklist support is on our roadmap, but there is no timeline to share at this point [#safeharbor].

Related Topic