These docs are for an old release. Info on upgrading to v5

resourceText

Determines the displayed text on each resource.

function( resource )

This function accepts a Resource Object and should return a string to be displayed.

If not specified, the resource object’s title field will be used. Otherwise, its id will be displayed.