Allow functions to be defined as values for "defaultValue"

I'm not sure how to update the docs, please advise