X
X
XenK2018-02-20 19:24:25
Vue.js
XenK, 2018-02-20 19:24:25

VueJS load information?

I am using bootstrap-vue table component.
How can I make it so that when clicking on "Show Details", a GET request is first sent to receive data, and after successful receipt, a line with this data is opened?
5a8c4baa783c5446438421.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-07-14
@XenK

Instead of directly hooking row.toggleDetailsit as a click handler, you can wrap it in a method that will accept rowand check for additional information, initiating its loading if not. For example (instead of a setTimeout request, but I think the point is clear).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question