|
1 | 1 | <div ng-controller="PopoverDemoCtrl"> |
2 | | - <div class="well"> |
3 | | - <div> |
4 | | - <h4>Dynamic</h4> |
5 | | - <form role="form"> |
6 | | - <div class="form-group"> |
7 | | - <label>Dynamic Popover </label> |
8 | | - <input type="text" ng-model="dynamicPopoverText" class="form-control"> |
9 | | - </div> |
10 | | - <div class="form-group"> |
11 | | - <label>Dynamic Popover Popup Text</label> |
12 | | - <input type="text" ng-model="dynamicPopover" class="form-control"> |
13 | | - </div> |
14 | | - <div class="form-group"> |
15 | | - <label>Dynamic Popover Popup Title:</label> |
16 | | - <input type="text" ng-model="dynamicPopoverTitle" class="form-control"> |
17 | | - </div> |
18 | | - <button popover="{{dynamicPopover}}" popover-title="{{dynamicPopoverTitle}}" class="btn btn-info">{{dynamicPopoverText}}</button> |
19 | | - </form> |
| 2 | + <h4>Dynamic</h4> |
| 3 | + <div class="form-group"> |
| 4 | + <label>Popup Title:</label> |
| 5 | + <input type="text" ng-model="dynamicPopoverText" class="form-control"> |
20 | 6 | </div> |
21 | | - <div> |
22 | | - <h4>Positional</h4> |
23 | | - <button popover-placement="top" popover="On the Top!" class="btn btn-info">Top</button> |
24 | | - <button popover-placement="left" popover="On the Left!" class="btn btn-info">Left</button> |
25 | | - <button popover-placement="right" popover="On the Right!" class="btn btn-info">Right</button> |
26 | | - <button popover-placement="bottom" popover="On the Bottom!" class="btn btn-info">Bottom</button> |
| 7 | + <div class="form-group"> |
| 8 | + <label>Popup Text:</label> |
| 9 | + <input type="text" ng-model="dynamicPopover" class="form-control"> |
27 | 10 | </div> |
28 | | - <div> |
29 | | - <h4>Triggers</h4> |
30 | | - <button popover="I appeared on mouse enter!" popover-trigger="mouseenter" class="btn btn-info">Mouseenter</button> |
31 | | - <hr> |
32 | | - <input type="text" value="Click me!" |
33 | | - popover="I appeared on focus! Click away and I'll vanish..." |
34 | | - popover-trigger="focus" class="form-control"> |
| 11 | + <div class="form-group"> |
| 12 | + <label>Popup Title:</label> |
| 13 | + <input type="text" ng-model="dynamicPopoverTitle" class="form-control"> |
35 | 14 | </div> |
36 | | - <div> |
37 | | - <h4>Other</h4> |
38 | | - <button Popover-animation="true" popover="I fade in and out!" class="btn btn-info">fading</button> |
39 | | - <button popover="I have a title!" popover-title="The title." class="btn btn-info">title</button> |
40 | | - </div> |
41 | | - </div> |
| 15 | + <button popover="{{dynamicPopover}}" popover-title="{{dynamicPopoverTitle}}" class="btn btn-default">{{dynamicPopoverText}}</button> |
| 16 | + |
| 17 | + <hr /> |
| 18 | + <h4>Positional</h4> |
| 19 | + <button popover-placement="top" popover="On the Top!" class="btn btn-default">Top</button> |
| 20 | + <button popover-placement="left" popover="On the Left!" class="btn btn-default">Left</button> |
| 21 | + <button popover-placement="right" popover="On the Right!" class="btn btn-default">Right</button> |
| 22 | + <button popover-placement="bottom" popover="On the Bottom!" class="btn btn-default">Bottom</button> |
| 23 | + |
| 24 | + <hr /> |
| 25 | + <h4>Triggers</h4> |
| 26 | + <p> |
| 27 | + <button popover="I appeared on mouse enter!" popover-trigger="mouseenter" class="btn btn-default">Mouseenter</button> |
| 28 | + </p> |
| 29 | + <input type="text" value="Click me!" popover="I appeared on focus! Click away and I'll vanish..." popover-trigger="focus" class="form-control"> |
| 30 | + |
| 31 | + <hr /> |
| 32 | + <h4>Other</h4> |
| 33 | + <button Popover-animation="true" popover="I fade in and out!" class="btn btn-default">fading</button> |
| 34 | + <button popover="I have a title!" popover-title="The title." class="btn btn-default">title</button> |
42 | 35 | </div> |
0 commit comments