X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/24c7594d62d8d7fbbcdb64b11ce4adc5d8e6991a..f2dfb1a5a17c8c94598d6ea26587923cd217f00e:/atom/packages/ex-mode/node_modules/atom-space-pen-views/README.md diff --git a/atom/packages/ex-mode/node_modules/atom-space-pen-views/README.md b/atom/packages/ex-mode/node_modules/atom-space-pen-views/README.md index 4f8b31a..856ec19 100644 --- a/atom/packages/ex-mode/node_modules/atom-space-pen-views/README.md +++ b/atom/packages/ex-mode/node_modules/atom-space-pen-views/README.md @@ -84,7 +84,8 @@ class MySelectListView extends SelectListView super @addClass('overlay from-top') @setItems(['Hello', 'World']) - atom.workspaceView.append(this) + @panel ?= atom.workspace.addModalPanel(item: this) + @panel.show() @focusFilterEditor() viewForItem: (item) -> @@ -92,6 +93,9 @@ class MySelectListView extends SelectListView confirmed: (item) -> console.log("#{item} was selected") + + cancelled: -> + console.log("This view was cancelled") ``` ## Methods @@ -106,7 +110,7 @@ subclasses. Called when the item is about to appended to the list view. * `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`