Comments (4)
<form class="form-horizontal text-center" ng-controller="outsideUrlSwitchController">
<table class="table table-hover">
<thead>
<tr>
<th class="col-sm-4">广告联盟</th>
<th class="col-sm-4">是否开启</th>
<th class="col-sm-4">操作</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="outsideUrlSwitch in outsideUrlSwitchs">
<td>{{ outsideUrlSwitch.channelName }}</td>
<td>{{ outsideUrlSwitch.isOpening }} <input type="radio"
value="1"> 投放中 <input type="radio" value="0"> 已关闭
</td>
</td>
<td><button class="btn btn-danger btn-sm"
ng-click="deleteOutsideUrlSwitch(outsideUrlSwitch.id)">删除</button></td>
</tr>
<tr id="template" ng-show="true == isAddNewChannel">
<td><select class="form-control"
ng-options="appChannel.channelName for appChannel in appChannels track by appChannel.channelId"
ng-model="newSwitch.appChannel"></select></td>
<td><input type="radio" ng-model="newSwitch.isOpening"
value="1" checked> 投放中 <input type="radio"
ng-model="newSwitch.isOpening" value="0"> 已关闭</td>
<td><a class="btn btn-success btn-sm"
ng-click="saveOutsideUrlSwitch();">保存</a> <a
class="btn btn-warning btn-sm"
ng-click="isAddNewChannel = false; addingNewChannel = false">取消</a></td>
</tr>
<tr>
<td colspan="3"><a class="btn btn-info btn-sm"
ng-disabled="true == addingNewChannel"
ng-click="isAddNewChannel = true; addingNewChannel = true">添加一个渠道</a>
</td>
</tr>
</tbody>
</table>
from ngbootbox.
$scope.outsideUrlSwitch = function(versionId) {
$scope.addingNewChannel = false;
$scope.versionId = versionId;
$scope.queryOutsideUrlSwitchList = function() {
outsideUrlSwitchService.queryOutsideUrlSwitchList($scope);
};
outsideUrlSwitchService.queryOutsideUrlSwitchList($scope);
$scope.options = {
templateUrl : '../version/outside_url_switch_dialog.html',
title : '外链开关设置',
size : 'large',
scope : $scope,
buttons : {
success : {
label : "关闭",
className : "btn-default",
callback : function() {
}
}
}
};
$ngBootbox.customDialog($scope.options);
}
from ngbootbox.
from ngbootbox.
No problem now!
from ngbootbox.
Related Issues (20)
- confirm has no title,can u add one ? HOT 1
- Issue with updating $scope using callback function HOT 3
- How to disable dialog button during callback?
- controller for custom dialog
- Optional attribute to center vertically the modal
- ng-bootbox-prompt attribute for default value?
- Need to use $ngBootbox in angular.config
- How to close custome dialog programatically ? HOT 1
- Bind events via customDialog
- confirm or dismiss the dialog via angularJS HOT 1
- [PATCH] Make customDialog method return an promise to the bootbox dialog instance
- Prevent from close on success button click.
- Version for Angular2
- Update the package on npm HOT 1
- Partial not showing HOT 1
- Customize buttons on prompt
- Prompt input type
- Cannot use inline conditionals in templates using ng-if attribute
- multiple custom modals on same view (same controller) HOT 1
- Attach event when modal opens HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngbootbox.