0
I am trying to use the "box Collapse" of the Adminlte template (figure below), but when rendering dynamically it does not expand by clicking on the '+'. I’m using the code below in a Partialview.
I tried to use jQuery’s delegate function, but I don’t know which elements to select and the functions to be used to expand and close.
@foreach (var item in Model)
{
<div class="row">
<div class="col-md-12">
<div class="box box-default collapsed-box item-collapsed">
<div class="box-header with-border">
<h3 class="box-title">@item.Nome</h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse">
<i class="fa fa-plus"></i>
</button>
</div>
</div>
<div class="box-body">
<p>Descrição: @item.Descricao</p>
<p>Preço: @item.Preco</p>
<p>Quantidade: @item.Quantidade</p>
</div>
</div>
</div>
</div>
}
Voce can use Collapse bootstrap
– Marcelo Batista
It is because I did not see in the bootstrap of this model. I only saw with buttons and accordion.
– Raphael
I do not understand very well, can explain better what Voce wants
– Marcelo Batista
I just wanted to be able to expand Collapse through "+", because, as I said, dynamically rendering the expansion does not work.
– Raphael