angularjs侧边栏弹出层插件
yangxi(fangke) fangke@mogujie.com||599321378@qq.com
Install
Download via bower or look for the files in the dist folder
bower install --save-dev angular-ui-sideBar
Import it to your page
<script src="bower_components/angular-ui-sideBar/sideBar.js"></script>
Enable it on your app
angular.module('myModule', ['$fangkeBar']);
Use it
...
var ctrl = this;
var demo1 = {
init: function() {
ctrl.name = "demo1";
ctrl.open = this.open.bind(this);
ctrl.close = this.close.bind(this);
},
open: function() {
$fangkeBar.open({
id: 'fangke',
templateUrl: "app/demo/demo1/tmp.html",
//is not necessary
position:{
top:50,//default => 0
bottom:0, //default => 0
width:500 //default => 400
},
//is not necessary
speed: 100 //open speed, default => 300
}, $scope);
},
close: function() {
$fangkeBar.close(100);//close speed, default => 300
}
};
demo1.init();
...
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。