Momo
1
Is there a way to to update the context in my left view? through an action in another view?
For Example i have a left view which displays a list of items and a main view which displays the selected Element
can add another item in the list from action happening in the main view? if so how?
shastox
4
leftView.router.currentPageEl.f7Component.$setState();
1 Like
А можно ли применить $setState() не к текущей странице, а к странице в истории?
Можно, нужно вызвать setState
в той странице, для этого ей нужно дать команду, например через события.
nolimits4web, что Вы имеете ввиду под “дать команду странице”, заново ее инициализировать и ловить событие pageInit?..
shastox
8
https://framework7.io/docs/events.html#events-bus кто-то посылает событие, а кто-то их обрабатывает