Modal Example
How do I make an modal example?
What is a modal example? How do you make a modal example? This script and codes were developed by Sean McCambridge on 08 September 2022, Thursday.
Modal Example - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Modal 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="ModalDemoCtrl"> <p>Modals!</p> <p><button class="btn btn-default" ng-click="demo.openModal()">Click to play!</button></p> </div> <script type="text/ng-template" id="template/modal/modal-demo.html"> <div class="modal-header"> <button type="button" class="close" ng-click="$close()" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel">Modal title</h4> </div> <div class="modal-body"> <p>Modal content...</p> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" ng-click="$close()">Close</button> <button type="button" class="btn btn-primary">Save changes</button> </div> </script>
</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>
Modal Example - Script Codes CSS Codes
/* this CSS is only for proper display of the codepen. do not add this to the CRM */
body { padding: 36px 24px;
}
Modal Example - Script Codes JS Codes
angular.module('PatternLibrary', [ 'ui.bootstrap']);
(function(PatternLibrary) { 'use strict'; PatternLibrary.controller('ModalDemoCtrl', ['$scope', '$modal', function($scope, $modal) { $scope.demo = { isOpen: false, modal: null, openModal: function openModal() { if (!$scope.demo.isOpen) { $scope.demo.modal = $modal.open({ templateUrl: 'template/modal/modal-demo.html', scope: $scope, keyboard: true, // escape closes modal backdrop: true, // adds modal backdrop windowClass: 'demo-modal' }); $scope.demo.isOpen = true; // When the user closes the modal through ESC or clicking out, make sure we update isOpen // Handle Modal Close is passed for both success and failure for the result promise $scope.demo.modal.result.then($scope.demo.handleModalClose, $scope.demo.handleModalClose); } }, handleModalClose: function() { $scope.demo.isOpen = false; } } }]);
})(angular.module('PatternLibrary'));
Developer | Sean McCambridge |
Username | seanboom |
Uploaded | September 08, 2022 |
Rating | 3 |
Size | 2,438 Kb |
Views | 38,456 |
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!
Name | Size |
Carousel Card Example | 2,409 Kb |
Chosen Example | 1,941 Kb |
Progressbar Example | 2,605 Kb |
Relative Time Example | 2,246 Kb |
Multiple Cards Example | 2,803 Kb |
Dropdown Example | 2,195 Kb |
Popover Example | 2,429 Kb |
Pagination Example | 2,282 Kb |
Alert Example | 2,212 Kb |
Single Card Example | 2,462 Kb |
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!
Name | Username | Size |
Twitch | SarahDunlap | 2,937 Kb |
Canvas Background Effect | Sonick | 3,513 Kb |
Drag n Drop | Martin42 | 2,594 Kb |
Underlined form fields | Mitchdot | 2,323 Kb |
Sequence.js - Sliding Horizontal Parallax | Maheshc | 4,537 Kb |
CSS3 Selectables with information rollover | Jasonmayes | 9,565 Kb |
Learning FlexBox | Alex_rodrigues | 2,821 Kb |
Christ the Redeemer | Prashantsani | 2,208 Kb |
SVG Scalable Text | Said_FD | 1,451 Kb |
A Pen by Michael Parenteau | Michaelparenteau | 2,133 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!