JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://ajax.aspnetcdn.com/ajax/knockout/knockout-3.0.0.js"></script>
<div>
<p data-bind="text: name"></p>
<table>
<tbody data-bind="foreach: tests">
<tr>
<td data-bind="text: testName"></td>
</tr>
</tbody>
</table>
</div>
JavaScript
Ext.define('TestsModel', {
name: null,
tests: null,
constructor: function (name) {
this.name = ko.observable(name);
this.tests = ko.observableArray([
{testName: 'FsTest'},
{testName: 'rmDirTest1'},
{testName: 'rmDirTest2'},
{testName: 'mdirTest1'}
]);
}
});
var test = Ext.create('TestsModel', 'My test dfdf');
ko.applyBindings(test);