Reference 〉Function

Data.modelReporter( str key )

Generates a reporter function that takes the model object and returns the named attribute of the model.

Parameters

  • key str, required

    The name of the model property the generated function should return.

Return Value func(Model)

A function that takes the model object and returns the key property of the model object.

Notes and Examples

  1. Contribute a Note

    Your email address will not be published. Required fields are marked *

    You may use limited HTML for formatting. Please embed blocks of code in <pre><code> </code></pre> tags.