Closed Antoniossss closed 7 years ago
There is already a open
option, you should be able to do:
echo $this->Panel->create('Filters', ['collapsible' => true, 'open' => false]);
If this does not work, this is a bug.
I was convinced that I have already checked that out, but I was obviously wrong. I dont know why did I missed that reading the source code :(
Sorry for troubles. open
option works as expected.
No problem, the documentation has been updated recently and is now much more complete so you may find relevant information without having to look at the sources:
https://holt59.github.io/cakephp3-bootstrap-helpers/panel-helper/basics/
https://holt59.github.io/cakephp3-bootstrap-helpers/api/class-Bootstrap.View.Helper.PanelHelper.html
Thank you, keep up the good work.
Hey
Right now following code
<?= $this->Panel->create("Filters", ["collapsible" => true]) ?>
will output collapsable panel that is initially open. Additional option for initial state would be very usefull. Another aproach would be to add consider integer value forcollapsible
so 0 = false, 1 true, initially open, >1 true, initially closed.