// a simple table that displays info about the selected task var TaskInfo = React.createClass({ // render a table if a task is selected render : function() { var html = this.props.task ?
Name: | {this.props.task.get('Name')} |
Start: | {Ext.Date.format(this.props.task.get('StartDate'), 'Y-m-d')} |
End: | {Ext.Date.format(this.props.task.get('EndDate'), 'Y-m-d')} |
Select a task to display info here.
; return (This example demonstrates how Ext Gantt can be wrapped as an React component.
A blog post describing the example can be found here: https://www.bryntum.com/blog/using-ext-gantt-with-react
Source available here: https://www.bryntum.com/playpen/react/react.zip