How to add a modal panel in a package


i’m about create an atom package and i want to add a modal panel like so:

atom.workspace.addModalPanel(item: ['one', 'two', 'three']);

where is the problem?


From the documentation of the item option:

Your panel content. It can be DOM element, a jQuery element, or a model with a view registered via ViewRegistry::addViewProvider. We recommend the latter. See ViewRegistry::addViewProvider for more information.

An array of strings doesn’t qualify as any of the above, I don’t believe.