Why this one works only for one card in layout?
How may i do to this one work at all cards in bootstrap layout?
pedroygor89 () - 6 years ago - Reply 0
Hello,
I've used this code, it's working fine. In my web page I've set the height of panel-body to 260px. How to resize the panel-body height when displayed in fullscreen.
Thanks,
imtiyaz
mimtiyaz () - 6 years ago - Reply 0
This is some great code but found it tricky to adjust with limited knowledge of jQuery.
But found solution with a little more flexibility, If you already using bootstrap 3 you may be familiar with collapse, try this:
Also it does not break html rules of multiple ids of the same name which should be unique.
CSS:
.fullscreen { display: block; z-index: 9999; position: fixed; width: 100%; height: 100%; top: 0; right: 0; left: 0; bottom: 0; overflow: auto; }
HTML:
<div id="users-list">
</div>
JS:
$('[data-toggle="expand"]').click(function() {
$(this).closest($(this).attr('data-target')).toggleClass('fullscreen');
});
Anonymous () - 7 years ago - Reply 0
grrr, attach this text to any element you like :- data-toggle="expand" data-target="#users-list"
Anonymous () - 7 years ago - Reply 0