Vue-good-table: Sort by id doesn't work

Created on 9 Aug 2018  路  4Comments  路  Source: xaksis/vue-good-table

If you have numeric value in the table, the sorting doesn't work

Error in getter for watcher "selectedRows": "TypeError: d.toLowerCase is not a function"

Most helpful comment

hey @Sharvadze, if you don't specify column type, it's going to assume it's a string. Refer to:
https://xaksis.github.io/vue-good-table/guide/configuration/column-options.html#type

closing

All 4 comments

hey @Sharvadze, if you don't specify column type, it's going to assume it's a string. Refer to:
https://xaksis.github.io/vue-good-table/guide/configuration/column-options.html#type

closing

i have specified the column type and all but i still get this error..

i ended up removing all the type of the columns and now i get this error

Error in render: "TypeError: d.toLowerCase is not a function"

You'll have to check per column what the type is, and set type I'd it's not a string.

So probably you need type: 'number'

Else set up a code sandbox, with some sample data
https://codesandbox.io/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

advicepyro picture advicepyro  路  3Comments

mgd722 picture mgd722  路  7Comments

LiamMcArthur picture LiamMcArthur  路  3Comments

jannishuebl picture jannishuebl  路  3Comments

sylvaincaillot picture sylvaincaillot  路  3Comments