Search
 
SCRIPT & CODE EXAMPLE
 

HTML

Drop down

<header>  
<div id="top">  
  <nav id="topmenu">  
    <ul>  
     <li><a href="">Home</a></li>  
     <li><a href="">About</a></li>  
     <li><a href="">Portfolio<span class="arrow">More Link</span></a>  
        <ul class="sublist">  
           <li><a href="#">Sub link</a></li>  
           <li><a href="#">Sub link</a></li>  
           <li><a href="#">Sub link<span class="arrow-right">More Link</span></a>  
        <ul class="subsublist">  
            <li><a href="#">Sub Sub link</a></li>  
            <li><a href="#">Sub Sub link</a></li>  
            <li><a href="#">Sub Sub link</a></li>  
       </ul>  
    </li>  
    </ul>  
    </li>
    <!-- OTHER LINKS SECTION -->  
    </ul>  
</nav>  
</div>  
</header>
Comment

dropdown

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fontenele/bootstrap-navbar-dropdowns@5.0.2/dist/css/bootstrap-navbar-dropdowns.min.css">
    <script src="https://cdn.jsdelivr.net/gh/fontenele/bootstrap-navbar-dropdowns@5.0.2/dist/js/bootstrap-navbar-dropdowns.min.js"></script>

    <script>
        $('.navbar').navbarDropdown({theme: 'bs4', trigger: 'mouseover'});
        // @TODO add options
    </script>

    
Comment

dropdown

final List<String> items = [   'Item1',   'Item2',   'Item3',   'Item4', ]; String? selectedValue;  @override Widget build(BuildContext context) {   return Scaffold(     body: Center(       child: DropdownButtonHideUnderline(         child: DropdownButton2(           hint: Text(             'Select Item',             style: TextStyle(               fontSize: 14,               color: Theme                       .of(context)                       .hintColor,             ),           ),           items: items                   .map((item) =>                   DropdownMenuItem<String>(                     value: item,                     child: Text(                       item,                       style: const TextStyle(                         fontSize: 14,                       ),                     ),                   ))                   .toList(),           value: selectedValue,           onChanged: (value) {             setState(() {               selectedValue = value as String;             });           },           buttonHeight: 40,           buttonWidth: 140,           itemHeight: 40,         ),       ),     ),   ); }
Comment

PREVIOUS NEXT
Code Example
Html :: textarea self expandable height 
Html :: lwc unescaped html 
Html :: How to include two pictures side by side in Markdown for Jupyter Notebook 
Html :: execute vue ui 
Html :: how to run html on visual studio code 
Html :: a page with html cheat sheet 
Html :: Write html into file using Java dynamically 
Html :: slider with steps 
Html :: how to use Video tags 
Html :: How to play a s3 video url in html video tag? 
Html :: what is the best programming language in 2021 
Html :: Select with checl box 
Html :: launch html in google chrome from terminal 
Html :: html text color 
Html :: html tabellen formatieren 
Html :: examples of metadata 
Html :: mvc 5 required field validation not working 
Html :: web application vs website 
Html :: innerhtml is not a function 
Html :: html autocomplete 
Html :: rowspan 1.5 html 
Html :: how to change the url of a website in html 
Html :: Using SVG as an <img 
Html :: html practice 
Html :: html meta information 
Html :: simple navbar 
Html :: add custom values in html tag 
Html :: formspree 
Html :: how to use id in html 
Html :: python snippet to convert html file to .csv file 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =