Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/vue-numeric.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 18 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ <h2 class="subtitle">
<vue-numeric
class="input is-large"
v-model="money"
:allow-clear="allowClear"
:empty-value="emptyValue"
:min="minValue"
:max="maxValue"
:currency="currency"
Expand Down Expand Up @@ -77,6 +79,12 @@ <h1 class="title is-4">
<input class="input" type="number" v-model.number="decimals">
</p>
</div>
<div class="column is-12">
<p class="control">
<label class="label"> Empty Value </label>
<input class="input" type="text" v-model="emptyValue">
</p>
</div>
<div class="column is-12">
<label class="label"> Separator </label>
<p class="control">
Expand All @@ -100,6 +108,12 @@ <h1 class="title is-4">
Read Only
</p>
</div>
<div class="column is-12">
<p class="control">
<input type="checkbox" v-model="allowClear">
Allow clear
</p>
</div>
</div>
</div>

Expand Down Expand Up @@ -132,8 +146,8 @@ <h1 class="title is-4">
</div>

<script src="https://unpkg.com/accounting-js"></script>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vue-numeric"></script>
<script src="https://unpkg.com/vue@2.6.14"></script>
<script src="../dist/vue-numeric.min.js"></script>

<script>
Vue.use(VueNumeric.default)
Expand All @@ -143,6 +157,8 @@ <h1 class="title is-4">

data: {
money: 1000,
allowClear: true,
emptyValue: '',
minValue: 0,
maxValue: 999999,
currency: '$',
Expand Down
Loading