bigbluebutton-Github/bigbluebutton-html5/app/client/views/whiteboard/PresentationListItem.jsx
2016-03-14 14:40:17 -07:00

25 lines
926 B
JavaScript
Executable File

PresentationListItem = React.createClass({
handleClickShow(){
return console.info('Should show the file `' + this.name + '`');
},
handleDelete(){
return console.info('Should delete the file `' + this.name + '`');
},
render() {
var fileItemClasses = "presenter-uploader-file-item" + (this.props.current ? " current" : "" )
return(
<li onClick={this.handleClickShow} class="presenter-uploader-file-item {{#if current}}current{{/if}}">
<span class="presenter-uploader-file-item-name" data-action-show>
{this.props.name}
</span>
<span class="presenter-uploader-file-item-actions">
{this.props.current ? null :
<i class="ion-ios-eye-outline" data-action-show></i>
}
<i onClick={this.handleClickDelete} class="ion-ios-trash-outline" data-action-delete></i>
</span>
</li>
);
}
});