X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsymbols%2FRoo.data.Record.json;fp=docs%2Fsymbols%2FRoo.data.Record.json;h=88a981db0ad6189a752acc73f20181d61ee9ec01;hp=2dc9847ac71ce17347951c72d88e4b5d8f5e9987;hb=bf93a181bcf69830bec36b29d1b1a33dc9ecd88e;hpb=5ecba872c79bd4b91f172e96b81bab55cf009a12 diff --git a/docs/symbols/Roo.data.Record.json b/docs/symbols/Roo.data.Record.json index 2dc9847ac7..88a981db0a 100644 --- a/docs/symbols/Roo.data.Record.json +++ b/docs/symbols/Roo.data.Record.json @@ -25,7 +25,7 @@ { "name" : "id", "type" : "Object", - "desc" : "(Optional) The id of the record. This id should be unique, and is used by the\n{@link Roo.data.Store} object which owns the Record to index its collection of Records. If\nnot specified an integer id is generated.", + "desc" : "The id of the record. This id should be unique, and is used by the\n{@link Roo.data.Store} object which owns the Record to index its collection of Records. If\nnot specified an integer id is generated.", "isOptional" : false } ], @@ -188,7 +188,7 @@ { "name" : "o", "type" : "Array", - "desc" : "An Array of field definition objects which specify field names, and optionally,\ndata types, and a mapping for an {@link Roo.data.Reader} to extract the field's value from a data object.\nEach field definition object may contain the following properties:
The name by which the field is referenced within the Record. This is referenced by,\nfor example the dataIndex property in column definition objects passed to {@link Roo.grid.ColumnModel}
(Optional) A path specification for use by the {@link Roo.data.Reader} implementation\nthat is creating the Record to access the data value from the data object. If an {@link Roo.data.JsonReader}\nis being used, then this is a string containing the javascript expression to reference the data relative to \nthe record item's root. If an {@link Roo.data.XmlReader} is being used, this is an {@link Roo.DomQuery} path\nto the data item relative to the record element. If the mapping expression is the same as the field name,\nthis may be omitted.
(Optional) The data type for conversion to displayable value. Possible values are\n
(Optional) A member of {@link Roo.data.SortTypes}.
(Optional) Initial direction to sort. \"ASC\" or \"DESC\"
(Optional) A function which converts the value provided\nby the Reader into an object that will be stored in the Record. It is passed the\nfollowing parameters:
The data value as read by the Reader.
(Optional) A format String for the Date.parseDate function.
\nvar TopicRecord = Roo.data.Record.create(\n {name: 'title', mapping: 'topic_title'},\n {name: 'author', mapping: 'username'},\n {name: 'totalPosts', mapping: 'topic_replies', type: 'int'},\n {name: 'lastPost', mapping: 'post_time', type: 'date'},\n {name: 'lastPoster', mapping: 'user2'},\n {name: 'excerpt', mapping: 'post_text'}\n);\n\nvar myNewRecord = new TopicRecord({\n title: 'Do my job please',\n author: 'noobie',\n totalPosts: 1,\n lastPost: new Date(),\n lastPoster: 'Animal',\n excerpt: 'No way dude!'\n});\nmyStore.add(myNewRecord);\n
",
+ "desc" : "An Array of field definition objects which specify field names, and optionally,\ndata types, and a mapping for an {@link Roo.data.Reader} to extract the field's value from a data object.\nEach field definition object may contain the following properties: The name by which the field is referenced within the Record. This is referenced by,\nfor example the dataIndex property in column definition objects passed to {@link Roo.grid.ColumnModel}
A path specification for use by the {@link Roo.data.Reader} implementation\nthat is creating the Record to access the data value from the data object. If an {@link Roo.data.JsonReader}\nis being used, then this is a string containing the javascript expression to reference the data relative to \nthe record item's root. If an {@link Roo.data.XmlReader} is being used, this is an {@link Roo.DomQuery} path\nto the data item relative to the record element. If the mapping expression is the same as the field name,\nthis may be omitted.
The data type for conversion to displayable value. Possible values are\n
A member of {@link Roo.data.SortTypes}.
Initial direction to sort. \"ASC\" or \"DESC\"
A function which converts the value provided\nby the Reader into an object that will be stored in the Record. It is passed the\nfollowing parameters:
The data value as read by the Reader.
A format String for the Date.parseDate function.
\nvar TopicRecord = Roo.data.Record.create(\n {name: 'title', mapping: 'topic_title'},\n {name: 'author', mapping: 'username'},\n {name: 'totalPosts', mapping: 'topic_replies', type: 'int'},\n {name: 'lastPost', mapping: 'post_time', type: 'date'},\n {name: 'lastPoster', mapping: 'user2'},\n {name: 'excerpt', mapping: 'post_text'}\n);\n\nvar myNewRecord = new TopicRecord({\n title: 'Do my job please',\n author: 'noobie',\n totalPosts: 1,\n lastPost: new Date(),\n lastPoster: 'Animal',\n excerpt: 'No way dude!'\n});\nmyStore.add(myNewRecord);\n
",
"isOptional" : false
}
],