HTML52014. 8. 13. 00:03

AutocompleteEditor.prototype.updateChoicesList = function (choices) {


     this.choices = choices;


    this.$htContainer.handsontable('loadData', Handsontable.helper.pivot([choices]));


/*    if(this.cellProperties.strict === true){

      this.highlightBestMatchingChoice();

    }*/

    var value = this.getValue();

    var rowToHighlight;


    if(this.cellProperties.strict === true){


      rowToHighlight = findItemIndexToHighlight(choices, value);


      if ( typeof rowToHighlight == 'undefined' && this.cellProperties.allowInvalid === false){

        rowToHighlight = 0;

      }


    }


    if(typeof rowToHighlight == 'undefined'){

      this.$htContainer.handsontable('deselectCell');

    } else {

      this.$htContainer.handsontable('selectCell', rowToHighlight, 0);

    }


    this.focus();

  };

'HTML5' 카테고리의 다른 글

d3에 대해 배우는 방법 정리  (0) 2014.11.28
특수기호 표시  (0) 2014.10.02
부트스트랩 관련 블로그  (0) 2013.08.13
Dectecting Mobile Devices with Javascript  (0) 2012.12.04
What’s Coming in Sencha Touch 2.1  (0) 2012.09.14
Posted by 미랭군