GithubHelp home page GithubHelp logo

manual-angular's Introduction

manual-angular

for me

ng-if

<div ng-if="pickingItem.hapPoChk == 1">
합포
</div>
<div ng-if="pickingItem.hapPoChk != 1">
단포
</div>

길게누를경우 onhold longclick

<button on-hold="onHold()"> </button>
        // 사용자 길게누를 경우
        $scope.onHold = function () {
            $scope.selectMinusAlertPopup('누적집계', '직전 집계로 되돌리시겠습니까?');
        }

    // 선택 팝업창 - 데이터의 누계감소
    $scope.selectMinusAlertPopup = function (titleTxt, messageTxt) {

        var storageName = 'ngStorage-ebgEntryCheckedChanged';
        var changed = JSON.parse(localStorage.getItem(storageName));

        var myPopup = $ionicPopup.show({
            template: messageTxt,
            title: titleTxt,
            scope: $scope,
            buttons: [
                {
                    text: '<b>확인</b>',
                    type: 'button-positive',
                    // 확인
                    onTap: function (e) {

                        // 화면에 변화가 없다면
                        if (changed === null || changed === undefined || changed === 'false' || $scope.arrClicked.length == 0) {
                            $scope.completeAlertPopup("알림", "집계감소할 항목이 없습니다.");
                        }
                        else {
                            // 버튼을 누를때마다, stack에 추가한다
                            // stack을 감소시키면서, 집계값을 감소한다.
                            $scope.restoreClicked();

                            // 닫기
                            myPopup.close();
                            e.preventDefault();

                        }
                    }
                },
                { text: '취소' }
            ]
        });
        // 취소
        myPopup.then(function (res) {
        });
    };

manual-angular's People

Contributors

jogilsang avatar

Watchers

 avatar

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.