Dropdown Example

Size
2,195 Kb
Views
32,384

How do I make an dropdown example?

What is a dropdown example? How do you make a dropdown example? This script and codes were developed by Sean McCambridge on 08 September 2022, Thursday.

Dropdown Example Previews

Dropdown Example - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Dropdown Example</title> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700'>
<link rel='stylesheet prefetch' href='https://boomtownroi.github.io/boomstrap/css/boomstrap.css'>
<link rel='stylesheet prefetch' href='https://boomtownroi.github.io/boomstrap/css/boomstrap-docs.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div ng-app="PatternLibrary"> <div ng-controller="dropdownDemoCtrl"> <div class="dropdown"> <button class="btn btn-success dropdown-toggle"> Click me! </button> <div class="dropdown-menu"> <div class="callout callout-success">I'm a callout in a dropdown-menu.</div> </div> </div> <div class="dropdown"> <button class="btn btn-attention dropdown-toggle"> Click me, too! </button> <ul class="dropdown-menu"> <li ng-repeat="item in listItems">{{ item }}</li> </ul> </div> </div>
</div> <script src='https://boomtownroi.github.io/boomstrap/js/boomstrap.min.js'></script>
<script src='https://boomtownroi.github.io/boomstrap/js/boomstrap-angular.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Dropdown Example - Script Codes CSS Codes

/* this CSS is only for proper display of the codepen. do not add this to the CRM */
body { padding: 12px 24px;
}
span { color: #1581e2; text-decoration: underline; cursor: pointer;
}
.dropdown { margin: 24px 0;
}
.dropdown-menu, .callout { margin: 0; padding: 0; }
.callout { padding: 18px; }
li { padding: 9px 6px; cursor: pointer;
}
li:hover { background-color: #ccc;
}

Dropdown Example - Script Codes JS Codes

angular.module('PatternLibrary', [ 'ui.bootstrap']);
(function(PatternLibrary) { 'use strict'; PatternLibrary.controller('dropdownDemoCtrl', ['$scope', function($scope) { $scope.listItems = [ 'Item 1 from controller', 'Item 2 from controller', 'Item 3 from controller' ]; }]);
})(angular.module('PatternLibrary'));
Dropdown Example - Script Codes
Dropdown Example - Script Codes
Home Page Home
Developer Sean McCambridge
Username seanboom
Uploaded September 08, 2022
Rating 3
Size 2,195 Kb
Views 32,384
Do you need developer help for Dropdown Example?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Sean McCambridge (seanboom) Script Codes
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!