Skip to content

Commit

Permalink
Refactor #506 - Update InputNumber doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Sep 27, 2020
1 parent 7cf493d commit f1d96c2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/inputnumber/InputNumber.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ export declare class InputNumber extends Vue {
max?: number;
step?: number;
$emit(eventName: string, value: number | Event): this;
}
$emit(eventName: 'input', e: {originalEvent: Event, value: any}): this;
}
23 changes: 21 additions & 2 deletions src/views/inputnumber/InputNumberDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,26 @@ Vertical
</div>

<h5>Events</h5>
<p>Any valid event such as focus, blur and input are passed to the underlying input element.</p>
<p>Any valid event such as focus and blur are passed to the underlying input element. Following are the additional events to configure the component.</p>
<div class="doc-tablewrapper">
<table class="doc-table">
<thead>
<tr>
<th>Name</th>
<th>Parameters</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>input</td>
<td>event.originalEvent: Browser event <br />
event.value: New value</td>
<td>Callback to invoke when the value is entered.</td>
</tr>
</tbody>
</table>
</div>

<h5>Styling</h5>
<p>Following is the list of structural style classes, for theming classes visit <router-link to="/theming">theming</router-link> page.</p>
Expand Down Expand Up @@ -475,4 +494,4 @@ export default {
</TabPanel>
</TabView>
</div>
</template>
</template>

0 comments on commit f1d96c2

Please sign in to comment.