table custom header
See original GitHub issueI am sorry if I am asking in a wrong place… I am at my very beginning with vue, and I have browsed all issues and I couldn’t find an answer… Thanks in advance if any tips.
This is what I want to do, to place a checkbox in the table header so that it can be used to toggle select all / unselect all:
I tried to put the following in the field json:
cbSelected: {
label: `<span><b-form-checkbox v-model="selectAll" value="checked" unchecked-value="unchecked">All / 全選
</b-form-checkbox></span>`
},
...
obviously it is not working as I thought it would, but you can tell that the ‘All / 全選’ string does get printed out on web (just not the checkbox)
hmmm. can you help me to get a checkbox shown beside the tag string? Thank you so much.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Examples: Custom Header | BaseTable
This is a custom Header. Row 0 - Col 0. Row 0 - Col 1. Row 1 - Col 0 ... scrollalbe table's...
Read more >Adding headers and footers to table sections - Apple Developer
Custom header and footer views give the sections of your table a unique appearance. With custom headers and footers, you specify the views...
Read more >HTML Table Headers - W3Schools
HTML tables can have headers for each column or row, or for many columns/rows. EMIL, TOBIAS, LINUS ...
Read more >How can you customize all elements in a table header?
The easiest thing would just be to use custom CSS on your component. In the <style> section add: <style> .v-data-table-header th ...
Read more >Tables with Two Headers | Web Accessibility Initiative (WAI)
This page covers tables that have a simple row header and a simple column header. In such tables, the relationship between the headers...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the note. I will try it out and come back if any questions. Thank you.
Yeah! Thank you! Can’t wait to try it out.