File tree Expand file tree Collapse file tree 1 file changed +33
-2
lines changed Expand file tree Collapse file tree 1 file changed +33
-2
lines changed Original file line number Diff line number Diff line change 1
- wt-popbox
1
+ wt-pbox Worktile 使用的基于 Angular.js 的弹出层插件
2
2
=========
3
3
4
- wt-popbox
4
+ ## 为什么不使用 ui-bootstrap 的 dropdown?
5
+ 1 . ui-bootstrap 的 dropdown 不支持动态编译模板,不适合列表中弹出复杂交互的层
6
+ 2 . 弹出层的位置只有上下,不能左右或者根据框体大小或者位置情况自动调节
7
+
8
+
9
+ ## 安装
10
+ 执行 ` bower install angular-wtpbox `
11
+
12
+
13
+ ## 使用示例
14
+
15
+ ```
16
+ <button data-placement="left" ng-click="open($event)">open</button>
17
+
18
+ $scope.open = function ($event) {
19
+ var pbox = $pbox.open({
20
+ event : $event,
21
+ templateUrl:"box.html",
22
+ //template : '<div><a>ssss111111 {{aaa}}</a> dddd <button ng-click="add()">click</button></div>',
23
+ controller: function ($scope,$pboxInstance) {
24
+ $scope.aaa = "sss";
25
+ $scope.add = function () {
26
+ $scope.aaa = "bbbbbb";
27
+ }
28
+ }
29
+ });
30
+ };
31
+ ```
32
+
33
+ ## 参数说明
34
+
35
+ ...
You can’t perform that action at this time.
0 commit comments