Commit 8b589cd5 authored by ioedeveloper's avatar ioedeveloper

context-menu

parent 2af196bb
...@@ -34,7 +34,7 @@ var canUpload = window.File || window.FileReader || window.FileList || window.Bl ...@@ -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 { ...@@ -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'>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment