B
B
beta-it2016-10-30 23:18:57
Yii
beta-it, 2016-10-30 23:18:57

How to save panel state in \yii\bootstrap\Collapse::widget widget?

Actually this widget has: How can this state be stored in the cache, fragment caching is not suitable. content is constantly changing
'contentOptions' => ['class' => 'in']

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2016-10-31
@beta-it

As far as I understand, you need to save the state of the element for a specific user of your system. In this case, I recommend just writing a JS script that will monitor its state and write it to some kind of storage , and when the page is loaded, read the data from the storage and restore the state

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question