Allow labelProperty to be a function.