148 lines
4.9 KiB
HTML
148 lines
4.9 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<title>JSDoc: Class: Конструктор класса DropDown</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: Конструктор класса DropDown</h1>
|
||
|
|
||
|
<section>
|
||
|
<header>
|
||
|
<h2>
|
||
|
<span class="attribs"><span class="type-signature"></span></span>Конструктор класса
|
||
|
DropDown<span class="signature">(options)</span><span class="type-signature"></span>
|
||
|
</h2>
|
||
|
</header>
|
||
|
|
||
|
<article>
|
||
|
<div class="container-overview">
|
||
|
<h4 class="name" id="Конструктор класса DropDown">
|
||
|
<span class="type-signature"></span>new Конструктор класса DropDown<span
|
||
|
class="signature"
|
||
|
>(options)</span
|
||
|
><span class="type-signature"></span>
|
||
|
</h4>
|
||
|
|
||
|
<div class="description">Конструктор принимает объект и рендерит селект.</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>options</code></td>
|
||
|
|
||
|
<td class="type">
|
||
|
<span class="param-type">object</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="cg-dropdown.js.html">cg-dropdown.js</a>,
|
||
|
<a href="cg-dropdown.js.html#line74">line 74</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
<h5>Example</h5>
|
||
|
|
||
|
<pre class="prettyprint"><code>options = {
|
||
|
selector: 'Уникальный селектор',
|
||
|
selected: 'Выбранный элемент',
|
||
|
placeholder: '...',
|
||
|
items: [string|number|object],
|
||
|
styles: {
|
||
|
head: {
|
||
|
background: '...',
|
||
|
},
|
||
|
list: {...},
|
||
|
chips: {...},
|
||
|
caret: {...},
|
||
|
placeholder: {...},
|
||
|
},
|
||
|
event: '...',
|
||
|
url: 'http/...',
|
||
|
multiselect: true/false,
|
||
|
multiselectTag: true/false,
|
||
|
}</code></pre>
|
||
|
</div>
|
||
|
</article>
|
||
|
</section>
|
||
|
</div>
|
||
|
|
||
|
<nav>
|
||
|
<h2><a href="index.html">Home</a></h2>
|
||
|
<h3>Classes</h3>
|
||
|
<ul>
|
||
|
<li><a href="DropDown.html">DropDown</a></li>
|
||
|
<li>
|
||
|
<a
|
||
|
href="%25D0%259A%25D0%25BE%25D0%25BD%25D1%2581%25D1%2582%25D1%2580%25D1%2583%25D0%25BA%25D1%2582%25D0%25BE%25D1%2580%2520%25D0%25BA%25D0%25BB%25D0%25B0%25D1%2581%25D1%2581%25D0%25B0%2520DropDown.html"
|
||
|
>Конструктор класса DropDown</a
|
||
|
>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<h3>Global</h3>
|
||
|
<ul>
|
||
|
<li><a href="global.html##addOptionsBehaviour">#addOptionsBehaviour</a></li>
|
||
|
<li><a href="global.html##close">#close</a></li>
|
||
|
<li><a href="global.html##init">#init</a></li>
|
||
|
<li><a href="global.html##initEvent">#initEvent</a></li>
|
||
|
<li><a href="global.html##initSelected">#initSelected</a></li>
|
||
|
<li><a href="global.html##open">#open</a></li>
|
||
|
<li><a href="global.html##render">#render</a></li>
|
||
|
<li><a href="global.html##renderUrl">#renderUrl</a></li>
|
||
|
<li><a href="global.html#addItem">addItem</a></li>
|
||
|
<li><a href="global.html#buttonControl">buttonControl</a></li>
|
||
|
<li><a href="global.html#deleteItem">deleteItem</a></li>
|
||
|
<li><a href="global.html#deleteItemAll">deleteItemAll</a></li>
|
||
|
<li><a href="global.html#disabled">disabled</a></li>
|
||
|
<li><a href="global.html#getElement">getElement</a></li>
|
||
|
<li><a href="global.html#selectIndex">selectIndex</a></li>
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
<br class="clear" />
|
||
|
|
||
|
<footer>
|
||
|
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Wed
|
||
|
Oct 19 2022 20:30:19 GMT+0300 (Moscow Standard Time)
|
||
|
</footer>
|
||
|
|
||
|
<script>
|
||
|
prettyPrint();
|
||
|
</script>
|
||
|
<script src="scripts/linenumber.js"></script>
|
||
|
</body>
|
||
|
</html>
|