Giter Site home page Giter Site logo

ng-click problem about ngbootbox HOT 4 CLOSED

eriktufvesson avatar eriktufvesson commented on July 3, 2024
ng-click problem

from ngbootbox.

Comments (4)

shangdiyisi avatar shangdiyisi commented on July 3, 2024
<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.

shangdiyisi avatar shangdiyisi commented on July 3, 2024
$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.

shangdiyisi avatar shangdiyisi commented on July 3, 2024

@vlapo

from ngbootbox.

shangdiyisi avatar shangdiyisi commented on July 3, 2024

No problem now!

from ngbootbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.