Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
powmedia committed Sep 8, 2011
1 parent dcff53a commit f74af4b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -200,6 +200,20 @@ Creates a sortable and editable list of items, which can be any of the above sch
- Similar in use to the main 'type' schema attribute. - Similar in use to the main 'type' schema attribute.
- Defaults to 'Text' - Defaults to 'Text'


**`toString`**

- Optional, but recommended when using listType 'Object'
- A function that returns a string representing how the object should be displayed in a list item.
- When listType is 'NestedModel', the model's toString() method will be used

Examples:

var schema = {
users: { type: 'List', listType: 'Object', toString: function(user) {
return user.firstName + ' ' + user.lastName;
}
}
};






Expand Down

0 comments on commit f74af4b

Please sign in to comment.