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.

b-table :fields converts <th>'s to a-z

See original GitHub issue

Hello!

I noticed that if you use the custom :fields="data" binding on the <b-table> tag, the “special chars” are stripped, is that done for any special reason?

Example:

<script>
  export default {
    name: 'contacts',
    data: function () {
      return {
        contacts: {
          fields: ['teståäöèò'], /// testaaoeo
          items: [{...}]
        }
      }
    }
  }
</script>

/Tarre

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tmorehousecommented, Oct 6, 2017

Actually, if you use the longer form field definition, you can avoid the startcase conversion:

<script>
  export default {
    name: 'contacts',
    data: function () {
      return {
        contacts: {
          fields: [{ key: 'teståäöèò', label: 'teståäöèò' ], // Array of objects
          // or
          fields: { 'teståäöèò': { label: 'teståäöèò'} }, // Object of objects
          items: [{...}]
        }
      }
    }
  }
</script>
1reaction
tmorehousecommented, Oct 3, 2017

It appears that lodash.startcase converts all special chars to their base letter: https://github.com/lodash/lodash/issues/3242

_.startcase is used to normalize the field names (converting kebab-case, camelCase, etc, into more “human” friendly labels.

They are expecting release v5 of lodash/startcase to fix this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Arizona Financial Theatre - 2022 show schedule & venue ...
Arizona Financial Theatre tickets and upcoming 2022 event schedule. ... Theatre in Phoenix, AZ, including upgrades, seating chart, and day of show information....
Read more >
Chase Field Concerts | Arizona Diamondbacks - MLB.com
The three-time Grammy award winning P!NK with special guests Brandi Carlile, Grouplove, and DJ Kid Cut Up are set to light up Chase...
Read more >
Elton John's 2022 Phoenix concerts at Chase Field - AZCentral
Elton John brings the Farewell Yellow Brick Road Tour to downtown Phoenix for back-to-back concerts on Friday and Saturday, Nov. 11 and 12....
Read more >
Chase Field Seating Chart & Map - SeatGeek
The Home Of Chase Field Tickets. Featuring Interactive Seating Maps, Views From Your Seats And The Largest Inventory Of Tickets On The Web....
Read more >
Upcoming Concerts - Musical Instrument Museum
View upcoming concerts and purchase tickets. ... Arizona Musicfest Young Musicians Winter Concert. Sunday, January 15, 2023, ... The Magnetic Fields.
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