25 lines
926 B
JavaScript
Executable File
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>
|
|
);
|
|
}
|
|
}); |