context-menu

pull/752/head
ioedeveloper 4 years ago
parent 2af196bb35
commit 8b589cd5af
  1. 11
      apps/remix-ide/src/app/panels/file-panel.js

@ -34,7 +34,7 @@ var canUpload = window.File || window.FileReader || window.FileList || window.Bl
const profile = { const profile = {
name: 'fileExplorers', name: 'fileExplorers',
displayName: 'File explorers', displayName: 'File explorers',
methods: [], methods: ['registerContextMenuItem'],
events: [], events: [],
icon: 'assets/img/fileManager.webp', icon: 'assets/img/fileManager.webp',
description: ' - ', description: ' - ',
@ -102,6 +102,15 @@ module.exports = class Filepanel extends ViewPlugin {
return this.el return this.el
} }
/**
*
* @param { name: string, type?: string[], path?: string[], extension?: string[], pattern?: string[] }
*/
registerContextMenuItem (action, callback) {
if (!action.name || !callback) return
}
renderComponent () { renderComponent () {
ReactDOM.render( ReactDOM.render(
<div className='remixui_container'> <div className='remixui_container'>

Loading…
Cancel
Save