@aki77/atom-input-dialog

Atom input dialog

Usage no npm install needed!

<script type="module">
  import aki77AtomInputDialog from 'https://cdn.skypack.dev/@aki77/atom-input-dialog';
</script>

README

atom-input-dialog Build Status

InputDialog

Example

InputDialog = require '@aki77/atom-input-dialog'

dialog = new InputDialog({
  callback: (text) ->
    console.log text
})
dialog.attach()

Constructor Params

Pass an optional params object to the constructor with the following keys:

  • callback
  • elementClass
  • defaultText
  • selectedRange
  • labelText
  • labelClass
  • validator
  • textPattern