Skip to content

Commit

Permalink
Input-id prop checkbox
Browse files Browse the repository at this point in the history
* feat: 🎸 Adding a new prop to set the id for inner input

Adding a new prop to set the id for inner input for checkbox component

* docs: ✏️ Adding helping data on checkbox api file

* refactor: 💡 Changing prop name
  • Loading branch information
ajomuch92 authored Mar 8, 2023
1 parent 575a8f2 commit 276497b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/pages/components/checkbox/api/checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ export default [
type: 'String',
values: '—',
default: '—'
},
{
name: '<code>input-id</code>',
description: 'String to set the inner input id',
type: 'String',
values: '—',
default: '—'
}
],
events: [
Expand Down
5 changes: 5 additions & 0 deletions src/components/checkbox/Checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
trigger the checkbox change in the b-table -->
<input
v-model="computedValue"
:id="inputId"
:indeterminate.prop="indeterminate"
type="checkbox"
ref="input"
Expand Down Expand Up @@ -49,6 +50,10 @@ export default {
autocomplete: {
type: String,
default: 'on'
},
inputId: {
type: String,
default: ''
}
}
}
Expand Down

0 comments on commit 276497b

Please sign in to comment.