F
F
fostsinger2018-08-15 14:26:51
Vue.js
fostsinger, 2018-08-15 14:26:51

Displaying data for a period in vue?

How to make a selection for the current month, current week, last week and last month?
I receive data from the server how to display them for a certain period

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-06-21
@fostsinger

Computed, of course. We add an array that describes filters for different periods, and on its basis we create controls that allow the user to select the active filter that is used in the calculated property to select data.
https://jsfiddle.net/or4qfmns/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question