Newer Version Available
Function Type
An attribute can have a type corresponding to a JavaScript function. If a child
component has an attribute of this type, you can pass a callback from a parent
component that contains the child component.
1<aura:attribute name="callback" type="Function" />For an example of using this type with aura:method, see Return Result for Asynchronous Code.