@rnacanvas/app-object 11.70.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -213,6 +213,26 @@ Forms are closed by simply removing them
|
|
|
213
213
|
|
|
214
214
|
Forms can be made draggable by applying the `DragTranslater` class of the `@rnacanvas/forms` package to them.
|
|
215
215
|
|
|
216
|
+
### `closeForm()`
|
|
217
|
+
|
|
218
|
+
Closes the topmost form.
|
|
219
|
+
|
|
220
|
+
Does nothing if no forms are open.
|
|
221
|
+
|
|
222
|
+
```javascript
|
|
223
|
+
app.closeForm();
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### `closeAllForms()`
|
|
227
|
+
|
|
228
|
+
Closes all currently open forms.
|
|
229
|
+
|
|
230
|
+
Does nothing if no forms are open.
|
|
231
|
+
|
|
232
|
+
```javascript
|
|
233
|
+
app.closeAllForms();
|
|
234
|
+
```
|
|
235
|
+
|
|
216
236
|
### `newTab()`
|
|
217
237
|
|
|
218
238
|
Opens a new blank tab of the RNAcanvas app.
|