[]
        
(Showing Draft Content)

GC.Spread.Sheets.Tables.TableColumn

Class: TableColumn

Sheets.Tables.TableColumn

Table of contents

Constructors

Methods

Constructors

constructor

new TableColumn(id, dataField?, name?, formatter?, cellType?, value?)

Represents the table column information.

Parameters

Name Type Description
id number The table column ID.
dataField? string The table column data field.
name? string The table column name.
formatter? string The table column formatter.
cellType? Base The table column cellType.
value? Function The table column value convert function.

Methods

cellType

cellType(value?): any

Gets or sets the table column cellType for custom cell type.

Parameters

Name Type Description
value? Base The table column cellType.

Returns

any

If no value is set, returns the table column cellType; otherwise, returns the table column.


dataField

dataField(value?): any

Gets or sets the table column data field for accessing the table's data source.

Parameters

Name Type Description
value? string The table column data field.

Returns

any

If no value is set, returns the table column data field; otherwise, returns the table column.


formatter

formatter(value?): any

Gets or sets the table column formatter for format display value.

Parameters

Name Type Description
value? string The table column formatter.

Returns

any

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


id

id(value?): any

Gets or sets the table column ID.

Parameters

Name Type Description
value? number The table column ID.

Returns

any

If no value is set, returns the table column ID; otherwise, returns the table column.


name

name(value?): any

Gets or sets the table column name for display.

Parameters

Name Type Description
value? string The table column name.

Returns

any

If no value is set, returns the table column name; otherwise, returns the table column.


value

value(value?): Function

Gets or sets the table column value convert function for display value.

Parameters

Name Type Description
value? Function The table column value convert function.

Returns

Function

If no value is set, returns the table column value convert function; otherwise, returns the table column.