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:
+56
-9
@@ -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"><template>
|
||||
<div id="myApp">
|
||||
@@ -169,6 +162,60 @@
|
||||
<code class="language-markup"></script></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><select></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><input></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>
|
||||
|
||||
|
||||
|
||||
@@ -186,10 +186,6 @@
|
||||
type: Array,
|
||||
default() { return [] },
|
||||
},
|
||||
ajax: {
|
||||
type: String,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
|
||||
data() {
|
||||
|
||||
Reference in New Issue
Block a user