templates/ui-offcanvas.html.twig line 1

Open in your IDE?
  1. {{ include('partials/main.html.twig') }}
  2.     <head>
  3.         
  4.         {{ include('partials/title-meta.html.twig', {title: 'Offcanvas'}) }}
  5.         {{ include('partials/head-css.html.twig') }}
  6.     </head>
  7.     {{ include('partials/body.html.twig') }}
  8.         <!-- Begin page -->
  9.         <div id="layout-wrapper">
  10.             {{ include('partials/menu.html.twig') }}
  11.             <!-- ============================================================== -->
  12.             <!-- Start right Content here -->
  13.             <!-- ============================================================== -->
  14.             <div class="main-content">
  15.                 <div class="page-content">
  16.                     <div class="container-fluid">
  17.                         {{ include('partials/page-title.html.twig', {pagetitle: 'Components', title: 'Offcanvas'}) }}
  18.                         <div class="row">
  19.                             <div class="col-lg-6">
  20.                                 <div class="card">
  21.                                     <div class="card-header">
  22.                                         <h5 class="card-title">Demo</h5>
  23.                                         <p class="card-title-desc">Use the buttons below to show and hide an offcanvas element via JavaScript that toggles the <code>.show</code> class on an element with the <code>.offcanvas</code> class.</p>
  24.                                     </div><!-- end card header -->
  25.                                     <div class="card-body">
  26.                                         <div class="d-flex flex-wrap gap-2">
  27.                                             <a class="btn btn-primary" data-bs-toggle="offcanvas" href="#offcanvasExample" role="button"
  28.                                                 aria-controls="offcanvasExample">
  29.                                                 Link with href
  30.                                             </a>
  31.                                             <button class="btn btn-primary" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasExample"
  32.                                                 aria-controls="offcanvasExample">
  33.                                                 Button with data-bs-target
  34.                                             </button>
  35.                                         </div>
  36.                                         <div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasExample" aria-labelledby="offcanvasExampleLabel">
  37.                                             <div class="offcanvas-header">
  38.                                                 <h5 class="offcanvas-title" id="offcanvasExampleLabel">Offcanvas</h5>
  39.                                                 <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
  40.                                             </div>
  41.                                             <div class="offcanvas-body">
  42.                                                 <div>
  43.                                                     Some text as placeholder. In real life you can have the elements you have chosen. Like, text, images, lists, etc.
  44.                                                 </div>
  45.                                                 <div class="dropdown mt-3">
  46.                                                     <button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown">
  47.                                                         Dropdown button <i class="mdi mdi-chevron-down"></i>
  48.                                                     </button>
  49.                                                     <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton">
  50.                                                         <li><a class="dropdown-item" href="#">Action</a></li>
  51.                                                         <li><a class="dropdown-item" href="#">Another action</a></li>
  52.                                                         <li><a class="dropdown-item" href="#">Something else here</a></li>
  53.                                                     </ul>
  54.                                                 </div>
  55.                                             </div>
  56.                                         </div>
  57.                                     </div><!-- end card body  -->
  58.                                 </div><!-- end card -->
  59.                             </div><!-- end col -->
  60.                             <div class="col-lg-6">
  61.                                 <div class="card">
  62.                                     <div class="card-header">
  63.                                         <h5 class="card-title">Placement</h5>
  64.                                         <p class="card-title-desc">Offcanvas Diffrent Placement Example: Left, Right & Bottom</p>
  65.                                     </div><!-- end card header -->
  66.                                     <div class="card-body">
  67.                                         <div class="d-flex flex-wrap gap-2">
  68.                                             <button class="btn btn-primary" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasTop" aria-controls="offcanvasTop">Toggle top offcanvas</button>
  69.                                             
  70.                                             <button class="btn btn-primary" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasRight" aria-controls="offcanvasRight">Toggle right offcanvas</button>
  71.                                             <button class="btn btn-primary" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasBottom" aria-controls="offcanvasBottom">Toggle bottom offcanvas</button>
  72.                                         </div>
  73.                                         
  74.                                         <!-- top offcanvas -->
  75.                                         <div class="offcanvas offcanvas-top" tabindex="-1" id="offcanvasTop" aria-labelledby="offcanvasTopLabel">
  76.                                             <div class="offcanvas-header">
  77.                                                 <h5 id="offcanvasTopLabel">Offcanvas top</h5>
  78.                                                 <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
  79.                                             </div>
  80.                                             <div class="offcanvas-body">
  81.                                                 ...
  82.                                             </div>
  83.                                         </div>
  84.                                         <!-- right offcanvas -->
  85.                                         <div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasRight" aria-labelledby="offcanvasRightLabel">
  86.                                             <div class="offcanvas-header">
  87.                                               <h5 id="offcanvasRightLabel">Offcanvas Right</h5>
  88.                                               <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
  89.                                             </div>
  90.                                             <div class="offcanvas-body">
  91.                                               ...
  92.                                             </div>
  93.                                         </div>
  94.                                         <!-- left offcanvas -->
  95.                                         <div class="offcanvas offcanvas-bottom" tabindex="-1" id="offcanvasBottom" aria-labelledby="offcanvasBottomLabel">
  96.                                             <div class="offcanvas-header">
  97.                                               <h5 id="offcanvasBottomLabel">Offcanvas Bottom</h5>
  98.                                               <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
  99.                                             </div>
  100.                                             <div class="offcanvas-body">
  101.                                               ...
  102.                                             </div>
  103.                                         </div>
  104.                                     </div><!-- end card body  -->
  105.                                 </div><!-- end card -->
  106.                             </div><!-- end col -->
  107.                         </div><!-- end row -->
  108.                         <div class="row">
  109.                             <div class="col-lg-12">
  110.                                 <div class="card">
  111.                                     <div class="card-header">
  112.                                         <h5 class="card-title">Backdrop</h5>
  113.                                         <p class="card-title-desc">Scrolling the <code>&lt;body&gt;</code> element is disabled when an offcanvas and its backdrop are visible. Use the <code>data-bs-scroll</code> attribute to toggle <code>&lt;body&gt;</code> scrolling and <code>data-bs-backdrop</code> to toggle the backdrop.</p>
  114.                                     </div><!-- end card header -->
  115.                                     <div class="card-body">
  116.                                         <div class="d-flex flex-wrap gap-2">
  117.                                             <button class="btn btn-primary" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasScrolling" aria-controls="offcanvasScrolling">Enable body scrolling</button>
  118.                                             <button class="btn btn-primary" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasWithBackdrop" aria-controls="offcanvasWithBackdrop">Enable backdrop (default)</button>
  119.                                             <button class="btn btn-primary" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasWithBothOptions" aria-controls="offcanvasWithBothOptions">Enable both scrolling & backdrop</button>
  120.                                         </div>
  121.                                         <div class="offcanvas offcanvas-start" data-bs-scroll="true" data-bs-backdrop="false" tabindex="-1" id="offcanvasScrolling" aria-labelledby="offcanvasScrollingLabel">
  122.                                             <div class="offcanvas-header">
  123.                                               <h5 class="offcanvas-title" id="offcanvasScrollingLabel">Colored with scrolling</h5>
  124.                                               <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
  125.                                             </div>
  126.                                             <div class="offcanvas-body">
  127.                                               <p>Try scrolling the rest of the page to see this option in action.</p>
  128.                                             </div>
  129.                                         </div>
  130.                                         <div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasWithBackdrop" aria-labelledby="offcanvasWithBackdropLabel">
  131.                                             <div class="offcanvas-header">
  132.                                               <h5 class="offcanvas-title" id="offcanvasWithBackdropLabel">Offcanvas with backdrop</h5>
  133.                                               <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
  134.                                             </div>
  135.                                             <div class="offcanvas-body">
  136.                                               <p>.....</p>
  137.                                             </div>
  138.                                         </div>
  139.                                         <div class="offcanvas offcanvas-start" data-bs-scroll="true" tabindex="-1" id="offcanvasWithBothOptions" aria-labelledby="offcanvasWithBothOptionsLabel">
  140.                                             <div class="offcanvas-header">
  141.                                               <h5 class="offcanvas-title" id="offcanvasWithBothOptionsLabel">Backdroped with scrolling</h5>
  142.                                               <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
  143.                                             </div>
  144.                                             <div class="offcanvas-body">
  145.                                               <p>Try scrolling the rest of the page to see this option in action.</p>
  146.                                             </div>
  147.                                         </div>
  148.                                     </div><!-- end card body  -->
  149.                                 </div><!-- end card -->
  150.                             </div><!-- end col -->
  151.                         </div><!-- end row -->
  152.                     </div>
  153.                     <!-- container-fluid -->
  154.                 </div>
  155.                 <!-- End Page-content -->
  156.                 
  157.                 {{ include('partials/footer.html.twig') }}
  158.             </div>
  159.             <!-- end main content-->
  160.         </div>
  161.         <!-- END layout-wrapper -->
  162.         {{ include('partials/right-sidebar.html.twig') }}
  163.         {{ include('partials/vendor-scripts.html.twig') }}
  164.         <script src="/js/app.js"></script>
  165.     </body>
  166. </html>