-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
B-Table selectable #3901
Comments
For select and unslect all, there are two methods available that you can tie to click handlers (or similar) <template>
<b-table ref="myTable" .... >
<!-- slots here -->
</b-table>
</template>
<script>
export default {
methods: {
selectAll() {
// Selet all rows
this.$refs.myTable.selectAllRows()
},
unselectAll() {
/// unselect all rows
this.$refs.myTable.clearSelected()
}
}
}
</script> Since row selection/deselection are click driven (it listened for row-clicked events), you can place a disabled checkbox in each row, that is tied to the row's scoped property |
Is it possible to use b-form-checkbox for selecting/unselecting rows?
Also selectall/unselect all in head using b-form-checkbox.
Can u plz provide example Thx.
The text was updated successfully, but these errors were encountered: