import { IgcCellInfo } from "./igc-cell-info";
import { EditorRowCellModel as EditorRowCellModel_internal } from "./EditorRowCellModel";
/**
 * Represents info about the current cell.
*/
export class IgcEditorRowCellInfo extends IgcCellInfo {
    createImplementation() {
        return new EditorRowCellModel_internal();
    }
    /**
                                 * @hidden
                                 */
    get i() {
        return this._implementation;
    }
    constructor() {
        super();
    }
    /**
     * Gets or sets the edit target for this cell.
    */
    get editTarget() {
        if (this.i.kx == null) {
            return null;
        }
        return this.i.kx.externalObject;
    }
    set editTarget(v) {
        v == null ? this.i.kx = null : this.i.kx = v.i;
    }
    findByName(name) {
        var baseResult = super.findByName(name);
        if (baseResult) {
            return baseResult;
        }
        if (this.editTarget && this.editTarget.name && this.editTarget.name == name) {
            return this.editTarget;
        }
        return null;
    }
}
//# sourceMappingURL=igc-editor-row-cell-info.js.map
