beginEditing(initialValue) {
        // Re-initialize original value.
        this.originalValue = this.instance.getDataAtCell(this.row, this.col);
        // Copy editor options.
        this.options = Object.assign({}, this.cellProperties.editorOptions);
        // Handle select2 data source.
        if (this.options.data) {
            // Create data adapter from existing data options.
            this.options.dataAdapter = this.createDataAdapter(this.options);
        }
        else if (this.options.dataAdapter) {
            // Wrap existing adapter to give user access to cell properties.
            this.options.dataAdapter = this.wrapDataAdapter(this.cellProperties);
        }
        // Mute and give control to editor.
        this.instance.unlisten();
        // Create editor DOM.
        this.$editor = Editor.createEditorDOM();
        // Create select DOM.
        this.$select = Editor.createSelectDOM(this.options);
        // Append select element to editor DOM.
        this.$editor.find('.select2-content').append(this.$select);
        // Create jQuery TD.
        this.$TD = jQuery(this.TD);
        // Empty cell.
        this.$TD.empty();
        // Append editor to cell.
        this.$TD.append(this.$editor);
        // Begin editing.
        super.beginEditing(initialValue);
    }
/**
     * Editor begin editing.
     *
     * @param initialValue Init value.
     */
Editor begin editing.
@param initialValue Init value.
Editor begin editing . @param initialValue Init value .
beginEditing(initialValue) {
        this.originalValue = this.instance.getDataAtCell(this.row, this.col);
        this.options = Object.assign({}, this.cellProperties.editorOptions);
        if (this.options.data) {
            this.options.dataAdapter = this.createDataAdapter(this.options);
        }
        else if (this.options.dataAdapter) {
            this.options.dataAdapter = this.wrapDataAdapter(this.cellProperties);
        }
        this.instance.unlisten();
        this.$editor = Editor.createEditorDOM();
        this.$select = Editor.createSelectDOM(this.options);
        this.$editor.find('.select2-content').append(this.$select);
        this.$TD = jQuery(this.TD);
        this.$TD.empty();
        this.$TD.append(this.$editor);
        super.beginEditing(initialValue);
    }
beginEditing ( initialValue ) { this . originalValue = this . instance . getDataAtCell ( this . row , this . col ) ; this . options = Object . assign ( { } , this . cellProperties . editorOptions ) ; if ( this . options . data ) { this . options . dataAdapter = this . createDataAdapter ( this . options ) ; } else if ( this . options . dataAdapter ) { this . options . dataAdapter = this . wrapDataAdapter ( this . cellProperties ) ; } this . instance . unlisten ( ) ; this . $editor = Editor . createEditorDOM ( ) ; this . $select = Editor . createSelectDOM ( this . options ) ; this . $editor . find ( '.select2-content' ) . append ( this . $select ) ; this . $TD = jQuery ( this . TD ) ; this . $TD . empty ( ) ; this . $TD . append ( this . $editor ) ; super . beginEditing ( initialValue ) ; }
Editor begin editing.
Editor begin editing .
// Re-initialize original value. // Copy editor options. // Handle select2 data source. // Create data adapter from existing data options. // Wrap existing adapter to give user access to cell properties. // Mute and give control to editor. // Create editor DOM. // Create select DOM. // Append select element to editor DOM. // Create jQuery TD. // Empty cell. // Append editor to cell. // Begin editing.