How to use a Vue component with detailFormatter #4754
Labels
awaiting reply
Issues that are awaiting reply, will be closed if there is no any response in 7 days.
help-wanted
Issues we need or would love help from the community to resolve.
Hello. I'm trying to use a Vue component with detailFormatter. The idea is that a user would click a row, which would then expand, and a normal Vue component would be displayed.
I have tried to programmatically instantiate a Vue component and render out the HTML. This works, but it lacks the interactivity of a Vue component. So it's fine for static content, but not for dynamic.
I took a look at the mixin here: https://github.com/wenzhixin/bootstrap-table-examples/blob/develop/vue-starter/src/mixins/table.js and the blog from https://blog.bootstrap-table.com/2019/08/10/formatter-use-vue-component/ but these do not appear to work with detailFormatters.
Any idea how I can get this to work?
This works for static data:
However, because it's static, the data from the row is never rendered, nor can it change over time.
Ideally, what I'd like to have is:
And have the component be reactive like every other Vue component. Any idea how I can achieve this?
The text was updated successfully, but these errors were encountered: