GIJGO
Run Example
Close Window
<html> <head> <meta charset="utf-8" /> <title>Bootstrap 5 TreeView</title> <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> <script src="https://unpkg.com/gijgo@1.9.14/js/gijgo.min.js" type="text/javascript"></script> <link href="https://unpkg.com/gijgo@1.9.14/css/gijgo.min.css" rel="stylesheet" type="text/css" /> </head> <body> <div class="container-fluid"> <div id="tree"></div> </div> <script type="text/javascript"> $(document).ready(function () { $('#tree').tree({ uiLibrary: 'bootstrap5', dataSource: '/Locations/Get', primaryKey: 'id', imageUrlField: 'flagUrl' }); }); </script> </body> </html>