Newer Version Available

This content describes an older version of this product. View Latest

Function Type

An attribute can have a type corresponding to a JavaScript function.
1<aura:attribute name="callback" type="Function" />

For an example, see Return Result for Asynchronous Code.

Don’t send attributes with type="Function" to the server. These attributes are intended to only be used on the client side.

Note