[SalesForce] Salesforce Picklist and ui:inputSelect

I'm having trouble finding documentation on this. Is there a way to bind a Picklist value in the lightning component / aura ui:inputSelect tag? Something as simple as <ui:inputSelect value="{!v.obj.Picklist__c" />?

Otherwise, it looks like the only alternative is to utilize the Javascript controller and do a describe to grab the picklist values, which I would prefer to avoid.

Thanks!

Best Answer

As Mohith implied, you can use the force:inputField component (note, I cant remember if this requires Winter 16) to bind to a Salesforce field, the same way you would in Visualforce.