super
@addClass('overlay from-top')
@setItems(['Hello', 'World'])
- atom.workspaceView.append(this)
+ @panel ?= atom.workspace.addModalPanel(item: this)
+ @panel.show()
@focusFilterEditor()
viewForItem: (item) ->
confirmed: (item) ->
console.log("#{item} was selected")
+
+ cancelled: ->
+ console.log("This view was cancelled")
```
## Methods
* `item` The model item being rendered. This will always be one of the items
previously passed to `::setItems`.
-Returns a String of HTML, DOM element, jQuery object, or View.
+Returns a String of HTML, DOM element, jQuery object, or View. Note the root element must be an `li`.
#### `::confirmed`