question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

table custom header

See original GitHub issue

I 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:

2017-06-15_how_to_add_a_cb

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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
neildchencommented, Jun 19, 2017

Thanks for the note. I will try it out and come back if any questions. Thank you.

1reaction
neildchencommented, Jun 16, 2017

Yeah! Thank you! Can’t wait to try it out.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found