atom-modal-views
v1.0.30
Published
NPM Package Template
Downloads
61
Readme
atom-modal-views
Modal Input Views for Atom packages
InputView
Single line input view
Usage
const { InputView } = require("atom-modal-views");
const inputView = new InputView({
title: "Title text",
description: "Description can use **markdown**",
placeholder: "placeholder text",
value: "initial value",
});
const value = await inputView.getInput();
Options
| Name | Default | Description |
|:------------|:-------:|:---------------------------------------------|
| title | ""
| Title inside <h1>
tag |
| description | ""
| Description can contain markdown |
| placeholder | ""
| Placeholder text to show when input is empty |
| value | ""
| The initial value |