diff options
| author | Neylor Ohmaly | 2014-02-04 21:13:29 -0200 |
|---|---|---|
| committer | Neylor Ohmaly | 2014-02-04 21:13:29 -0200 |
| commit | 68f2f1f0119e63890871bce7819e182152566160 (patch) | |
| tree | b33fba37dce537362ed3950751ef046e7422c282 /example | |
| parent | 51f30447ed5269da0d0ebc2679984908ff899e3a (diff) | |
| download | nsPopover-68f2f1f0119e63890871bce7819e182152566160.tar.bz2 | |
Created the basic popover.0.0.1
Diffstat (limited to 'example')
| -rw-r--r-- | example/index.html | 36 | ||||
| -rw-r--r-- | example/index.js | 11 |
2 files changed, 47 insertions, 0 deletions
diff --git a/example/index.html b/example/index.html new file mode 100644 index 0000000..015e41d --- /dev/null +++ b/example/index.html @@ -0,0 +1,36 @@ +<!DOCTYPE html>
+<html ng-app="nsPopoverExample">
+<head>
+ <meta charset="utf-8">
+ <title>nsPopover demo</title>
+
+ <link rel="stylesheet" href="../build/nsPopover.css">
+
+ <style>
+ body {
+ font-family: arial, sans-serif;
+ }
+
+ a {
+ cursor: pointer;
+ }
+ </style>
+
+ <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.js"></script>
+ <script src="../build/nsPopover.js"></script>
+ <script src="index.js"></script>
+
+ <script type="text/ng-template" id="popover">
+ <ul>
+ <li ng-repeat="item in items"><a>{{item.name}}</a></li>
+ </ul>
+ </script>
+
+</head>
+<body ng-controller="MainCtrl">
+
+<button ns-popover ns-popover-template="popover" ns-popover-trigger="mouseover">
+ Menu
+</button>
+</body>
+</html>
\ No newline at end of file diff --git a/example/index.js b/example/index.js new file mode 100644 index 0000000..6315168 --- /dev/null +++ b/example/index.js @@ -0,0 +1,11 @@ +angular
+ .module('nsPopoverExample', ['nsPopover'])
+ .controller('MainCtrl', function($scope) {
+ $scope.items = [{
+ name: "Action"
+ }, {
+ name: "Another action"
+ }, {
+ name: "Something else here"
+ }];
+ });
\ No newline at end of file |
