K
K
Kiril Kharkevich2019-04-22 16:54:05
Vue.js
Kiril Kharkevich, 2019-04-22 16:54:05

How to dynamically create a button or label?

Good afternoon, tell me the correct solution. I have a list treeview with items in it. It is necessary to somehow create buttons (mini tabs or something) in which there will be the name of the selected element and a cross, so that by clicking on the cross, this element can be removed from the selected one, it should also be removed from the treeview . Create such a certain array of buttons of the selected elements. At the moment, the data about the selected elements of the treeview is passed to the VuexStore in an array. Can you tell me how to implement something like this? Or does anyone have an example?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Drozdov, 2019-04-22
@bagzon

https://ru.vuejs.org/v2/guide/components-dynamic-a...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question