Files
js-util/docs/module-FormDataDeep.FormDataDeep.html
T
2022-12-03 16:42:36 +00:00

403 lines
5.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: FormDataDeep</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Class: FormDataDeep</h1>
<section>
<header>
<h2><span class="attribs"><span class="type-signature"></span></span>
<span class="ancestors"><a href="module-FormDataDeep.html">FormDataDeep</a>.</span>FormDataDeep<span class="signature">(form, primitives)</span><span class="type-signature"></span></h2>
<div class="class-description"><p>Convenience class to have a similar interface to FormData</p></div>
</header>
<article>
<div class="container-overview">
<h2>Constructor</h2>
<h4 class="name" id="FormDataDeep"><span class="type-signature"></span>new FormDataDeep<span class="signature">(form, primitives)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Get <code>form</code> data as an object, including nested forms.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>form</code></td>
<td class="type">
<span class="param-type">HTMLFormElement</span>
|
<span class="param-type">Object</span>
</td>
<td class="default">
</td>
<td class="description last"><p>the root form element, or a JSON Object containing form data.</p></td>
</tr>
<tr>
<td class="name"><code>primitives</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>whether to convert string values to primitives. Defaults <code>false</code>.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="FormDataDeep.mjs.html">FormDataDeep.mjs</a>, <a href="FormDataDeep.mjs.html#line75">line 75</a>
</li></ul></dd>
</dl>
</div>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id="apply"><span class="type-signature"></span>apply<span class="signature">(form)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Applies the values in this object to the target form.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>form</code></td>
<td class="type">
<span class="param-type">HTMLFormElement</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="FormDataDeep.mjs.html">FormDataDeep.mjs</a>, <a href="FormDataDeep.mjs.html#line133">line 133</a>
</li></ul></dd>
</dl>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-CSSRandom.html">CSSRandom</a></li><li><a href="module-FileReaderAsync.html">FileReaderAsync</a></li><li><a href="module-FormDataDeep.html">FormDataDeep</a></li></ul><h3>Classes</h3><ul><li><a href="module-FileReaderAsync.FileReaderAsync.html">FileReaderAsync</a></li><li><a href="module-FormDataDeep.FormDataDeep.html">FormDataDeep</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a> on Sat Dec 03 2022 16:41:37 GMT+0000 (Coordinated Universal Time)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>