<div class="accordion accordion-solid accordion-panel accordion-svg-toggle" id="accordionExample8">
<div class="card">
<div class="card-header" id="headingOne8">
<div class="card-title collapsed" data-bs-toggle="collapse" data-bs-target="#collapseOne8" aria-expanded="false">
<div class="card-label">Product Inventory</div>
<span class="svg-icon"><!--begin::Svg Icon | path:/metronic/theme/html/demo2/dist/assets/media/svg/icons/Navigation/Angle-double-right.svg--><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<polygon points="0 0 24 0 24 24 0 24"></polygon>
<path d="M12.2928955,6.70710318 C11.9023712,6.31657888 11.9023712,5.68341391 12.2928955,5.29288961 C12.6834198,4.90236532 13.3165848,4.90236532 13.7071091,5.29288961 L19.7071091,11.2928896 C20.085688,11.6714686 20.0989336,12.281055 19.7371564,12.675721 L14.2371564,18.675721 C13.863964,19.08284 13.2313966,19.1103429 12.8242777,18.7371505 C12.4171587,18.3639581 12.3896557,17.7313908 12.7628481,17.3242718 L17.6158645,12.0300721 L12.2928955,6.70710318 Z" fill="#000000" fill-rule="nonzero"></path>
<path d="M3.70710678,15.7071068 C3.31658249,16.0976311 2.68341751,16.0976311 2.29289322,15.7071068 C1.90236893,15.3165825 1.90236893,14.6834175 2.29289322,14.2928932 L8.29289322,8.29289322 C8.67147216,7.91431428 9.28105859,7.90106866 9.67572463,8.26284586 L15.6757246,13.7628459 C16.0828436,14.1360383 16.1103465,14.7686056 15.7371541,15.1757246 C15.3639617,15.5828436 14.7313944,15.6103465 14.3242754,15.2371541 L9.03007575,10.3841378 L3.70710678,15.7071068 Z" fill="#000000" fill-rule="nonzero" opacity="0.3" transform="translate(9.000003, 11.999999) rotate(-270.000000) translate(-9.000003, -11.999999) "></path>
</g>
</svg><!--end::Svg Icon--></span></div>
</div>
<div id="collapseOne8" class="collapse" data-bs-parent="#accordionExample8" >
<div class="card-body">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
</div>
</div>
</div>
</div>
I can't run this code in my mvc project.
Hi,
Can you please paste your code using https://gist.github.com/ ?
Regards.
https://preview.keenthemes.com/metronic/demo2/features/custom/accordions.html
how can i use accordion in my mvc project
Hi,
If you are using old Metronic v7 as per the above URL you can just refer to the source code of each accordion demo and copy it and paste in your ASP.Net HTML code:
<img src="https://i.imgur.com/NGHKP2a.png" alt="" class="w-100"/>
Regards.
its not working. Do I need to add something to my project for this to work?
Hi,
May I know what is not working? The card collapse or styles?
Are you using Metronic v7 in your project?
Do you have a test link so we can check it online?
Regards.