2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-07 07:12:23 +03:00

add params to docs/readme, remove ajax prop

This commit is contained in:
Jeff Sagal
2016-03-09 15:22:00 -08:00
parent d46f5fb5c6
commit e2c8e1daf6
4 changed files with 81 additions and 18 deletions
+56 -9
View File
@@ -136,17 +136,10 @@
<div class="row">
<div class="col-md-6">
<h2 class="page-header">Installing</h2>
<h2 class="page-header">Install & Usage</h2>
<h5>Install from GitHub using NPM</h5>
<pre><code class="language-c-like">$ npm install sagalbot/vue-select</code></pre>
<h5>Updating</h5>
<p>Some versions of NPM don't properly update packages installed from GitHub. In this case, just use the install line above to update.
</p>
</div>
<div class="col-md-6">
<h2 class="page-header">Usage</h2>
<pre v-pre>
<code class="language-markup">&#x3C;template&#x3E;
&#x3C;div id=&#x22;myApp&#x22;&#x3E;
@@ -169,6 +162,60 @@
<code class="language-markup">&#x3C;/script&#x3E;</code>
</pre>
</div>
<div class="col-md-6">
<h2 class="page-header">Parameters</h2>
<ul>
<li>
<code>value</code> Represents the currently selected value(s)
<ul>
<li>type: String</li>
<li>required: true </li>
</ul>
</li>
<li>
<code>maxHeight</code> Limit the height of the dropdown menu
<ul>
<li>type: String</li>
<li>default: '400px'</li>
</ul>
</li>
<li>
<code>searchable</code> Toggle filtering of options
<ul>
<li>type: Boolean</li>
<li>default: true </li>
</ul>
</li>
<li>
<code>multiple</code> Equivalent to <code>multiple</code> attribute on a <code>&#x3C;select&#x3E;</code>
<ul>
<li>type: Boolean</li>
<li>default: true</li>
</ul>
</li>
<li>
<code>placeholder</code> Equivalent to <code>placeholder</code> attribute on an <code>&#x3C;input&#x3E;</code>
<ul>
<li>type: String</li>
<li>default: ''</li>
</ul>
</li>
<li>
<code>transition</code> Vue <code>transition</code> prop applied to the <code>.dropdown-menu</code>
<ul>
<li>type: Boolean</li>
<li>default: true</li>
</ul>
</li>
</ul>
</div>
</div>
-4
View File
@@ -186,10 +186,6 @@
type: Array,
default() { return [] },
},
ajax: {
type: String,
default: null
}
},
data() {