SpreadJS Documentation
GC.Spread.Sheets.Tables Namespace / TableColumn type / formatter Method
The table column formatter.
In This Topic
    formatter Method
    In This Topic
    Gets or sets the table column formatter for format display value.
    Syntax
    var instance = new GC.Spread.Sheets.Tables.TableColumn(id, dataField, name, formatter, cellType, value);
    var returnValue; // Type: any
    returnValue = instance.formatter(value);
    function formatter( 
       value : string
    ) : any;

    Parameters

    value
    The table column formatter.

    Return Value

    If no value is set, returns the table column formatter; otherwise, returns the table column.
    See Also