Skip to content
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

Use object's property as a key in b-table #1558

Closed
gpassero opened this issue Jan 24, 2018 · 1 comment · Fixed by #1614
Closed

Use object's property as a key in b-table #1558

gpassero opened this issue Jan 24, 2018 · 1 comment · Fixed by #1614

Comments

@gpassero
Copy link

gpassero commented Jan 24, 2018

I can't access an object's property in the row of a b-table. E.g. It doesn't work when I set the key of the field as "category.id", but works when I set "category_id" (and this field exists).

You can see the problem in this brief example: https://jsfiddle.net/gpassero/jjuvpuvp/5/

This issue may probably be regarded as a suggestion for improvement in bootstrap-vue.

I solved the problem by using formatter, but I think should be nice to be able to use "object.property" at headers' key prop.

Windows 10
Chrome 63
Bootstrap-Vue 1.4.0

@gmmarc
Copy link

gmmarc commented Mar 14, 2018

@mosinve thanks for fixing this!

However, sorting doesn't work when using object key.

You can see the problem here: https://jsfiddle.net/jjuvpuvp/11/

Testes on v2.0.0-rc.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants