GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - WorktileTech/angular-wt-pbox: worktile pop box for angularjs

BranchesTags
Open more actions menu

Latest commit

 

History

41 Commits
41 Commits

Folders and files

NameName
Last commit message
Last commit date
sample
sample
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
bower.json
bower.json
 
 

Repository files navigation

wt-pbox 基于 Angular.js 的弹出层插件

为什么不使用 ui-bootstrap 的 dropdown?

  1. ui-bootstrap 的 dropdown 不支持动态编译模板,不适合列表中弹出复杂交互的层
  2. 弹出层的位置只有上下,不能左右或者根据框体大小或者位置情况自动调节

安装

执行 bower install angular-wtpbox

使用示例

 <button data-placement="left" ng-click="open($event)">open</button>

  $scope.open = function ($event) {
     var pbox = $pbox.open({
         event      : $event,
         templateUrl: "box.html",
         //template  : '<div><a>ssss111111 {{aaa}}</a> dddd <button ng-click="add()">click</button></div>',
         controller : function ($scope, $pboxInstance) {
             $scope.aaa = "sss";
             $scope.add = function () {
                 $scope.aaa = "bbbbbb";
             }
         }
     });
     pbox.result.then(function (result) {
         alert("close,result:" + result);
     }, function () {
         alert("dismiss");
     });
 };

参数说明

...

About

worktile pop box for angularjs

Resources

Readme
MIT license
Activity
Custom properties

Stars

18 stars

Watchers

17 watching

Forks

7 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.