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