Skip to content

Commit 8aeb682

Browse files
committed
修改 READE ME
1 parent b935a92 commit 8aeb682

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

README.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,35 @@
1-
wt-popbox
1+
wt-pbox Worktile 使用的基于 Angular.js 的弹出层插件
22
=========
33

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+
...

0 commit comments

Comments
 (0)