Update api docs for context menu

pull/752/head
ioedeveloper 4 years ago
parent aef57c9156
commit 5f18d5fe91
  1. 3
      apps/remix-ide/src/app/panels/file-panel.js

@ -105,7 +105,8 @@ module.exports = class Filepanel extends ViewPlugin {
/**
*
* @param { name: string, type?: string[], path?: string[], extension?: string[], pattern?: string[] }
* @param item { name: string, type?: string[], path?: string[], extension?: string[], pattern?: string[] }
* @param callback (...args) => void
*/
registerContextMenuItem (item, callback) {
if (!item.name || !callback) return console.error('menu name and callback is mandatory')

Loading…
Cancel
Save