Skip to content

Commit 8a9913e

Browse files
committed
Merge pull request #563 from ignaciofuentes/patch-1
adding script tag to sample
2 parents b10c844 + 9e6c94c commit 8a9913e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/javascript/data/datasource.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ The array of data items which the data source contains. The data source will wra
146146
Can be set to a string value if the [schema.type](#configuration-schema.type) option is set to "xml".
147147

148148
#### Example - set the data items of a data source
149-
149+
<script>
150150
var dataSource = new kendo.data.DataSource({
151151
data: [
152152
{ name: "Jane Doe", age: 30 },
@@ -157,6 +157,7 @@ Can be set to a string value if the [schema.type](#configuration-schema.type) op
157157
var janeDoe = dataSource.at(0);
158158
console.log(janeDoe.name); // displays "Jane Doe"
159159
});
160+
</script>
160161

161162
#### Example - set the data items as an XML string
162163
<script>

0 commit comments

Comments
 (0)