J
J
JuJes2020-09-15 14:53:50
Vue.js
JuJes, 2020-09-15 14:53:50

Need to filter by index, how?

There is a dx-tree-list, it contains elements that can now be filtered only by name. The input string for the v-text-field filter. The index that hits the address is in an array of attributes, which can be many, and it can stand there anywhere. The question follows, how can I filter by index (address)? Mb vuex? I’m somehow not on good terms with him, because I didn’t have to touch him before

this.grid.filter();

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JuJes, 2020-09-16
@JuJes

In general, the solution was found, ambiguous, but found. Since an array was returned that included another array, a decision was made to collect the response of the request differently. An additional field "address" has been displayed, and with a certain attributeId, all addresses are collected in a string in it, as a result, the search began to work by index

V
vItalIyIrtlach, 2020-09-15
@w13vitaliy

sort() on arrays and iterate it!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question