SpreadJS 13
GC.Spread.Sheets.CellTypes Namespace / Base class / updateEditor Method
The DOM element that was created by the createEditorElement method.
The cell's actual style.
The cell's layout information.
The context associated with the cell type. See the Remarks for more information.
In This Topic
    updateEditor Method
    In This Topic
    Updates the editor's size.
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.Base();
    var value; // Type: Rect
    value = instance.updateEditor(editorContext, cellStyle, cellRect, context);
    function updateEditor( 
       editorContext : Object,
       cellStyle : Style,
       cellRect : Rect,
       context : Object
    ) : Rect;

    Parameters

    editorContext
    The DOM element that was created by the createEditorElement method.
    cellStyle
    The cell's actual style.
    cellRect
    The cell's layout information.
    context
    The context associated with the cell type. See the Remarks for more information.

    Return Value

    Returns the new size for cell wrapper element, it should contain two properties 'width' and 'height'.
    Remarks

    The context parameter can include the following items:

    Item Type Description
    context.sheet GC.Spread.Sheets.Sheet instance Indicates the current sheet.
    context.row number The row index.
    context.col number The column index.
    context.sheetArea GC.Spread.Sheets.SheetArea The current sheet area.
    See Also

    Reference

    Base class