Aller au contenu principal
Version: 20

Classes

The following classes can be used in 4D View Pro.

LineBorder

.color

.color : Text

The .color property is the color of the border. Default = black.

.style

.style : Integer

The .style property is the style of the border. Default = empty.

TableColumn

.dataField

.dataField : Text

The .dataField property contains the table column's property name in the data context.

.formatter

.formatter : Text

The .formatter property contains the table column's formatter.

.name

.name : Text

La propriété .name contains the table column's name (obligatoire).

TableOptions

.allowAutoExpand

.allowAutoExpand : Boolean

The .allowAutoExpand property indicates whether to expand columns or rows of the table when values are added in empty adjacent cells. Default = True

.bandColumns

.bandColumns : Boolean

The .bandColumns property indicates whether to display an alternating column style. Default = False

.bandRows

.bandRows : Boolean

The .bandRows property indicates whether to display an alternating row style. Default = True

.highlightLastColumn

.highlightLastColumn : Boolean

The .highlightLastColumn property indicates whether to highlight the last column. Default = False

.highlightFirstColumn

.highlightFirstColumn : Boolean

The .highlightFirstColumn property indicates whether to highlight the first column. Default = False

.showFooter

.showFooter : Boolean

The .showFooter property indicates whether to display a footer. Default = False

.showHeader

.showHeader : Boolean

The .showHeader property indicates whether to display a header. Default = True

.showResizeHandle

.showResizeHandle : Boolean

The .showResizeHandle property indicates whether to display the resize handle for tables that don't have a source. Default = False

.tableColumns

.tableColumns : Collection

The .tableColumns property is a collection of cs.ViewPro.TableColumn objects used to create the table's columns.

.theme

.theme : cs.ViewPro.TableThemeOptions

The .theme property defines a table theme. Can also be a text (name of a native SpreadJS theme).

See the native SpreadJS themes.

.useFooterDropDownList

.useFooterDropDownList : Boolean

The .useFooterDropDownList property indicates whether to use a dropdown list in footer cells that calculate the total value of a column. Default = False

TableStyle

.backColor

.backColor : Text

The .backColor property is the background color of the table.

.forecolor

.forecolor : Text

The .forecolor property is the foreground color of the table.

.police

.font : Text

The .font property is the font name (see Fonts and text) of the table.

.textDecoration

.textDecoration : Integer

The .textDecoration property is the text decoration of the table (see Fonts and text).

.borderLeft

.borderLeft : cs.ViewPro.LineBorder

The .borderLeft property is the left border line of the table .

.borderRight

.borderRight : cs.ViewPro.LineBorder

The .borderRight property is the right border line of the table .

.borderBottom

.borderBottom : cs.ViewPro.LineBorder

The .borderBottom property is the bottom border line of the table .

.borderHorizontal

.borderHorizontal : cs.ViewPro.LineBorder

The .borderHorizontal property is the horizontal border line of the table .

.borderVertical

.borderVertical : cs.ViewPro.LineBorder

The .borderVertical property is the vertical border line of the table .

TableTheme

.bandRows

.bandRows : Boolean

The .bandRows property indicates whether to display an alternating row style.

.bandColumns

.bandColumns : Boolean

The .bandColumns property indicates whether to display an alternating column style.

.highlightLastColumn

.highlightLastColumn : Boolean

The .highlightLastColumn property indicates whether to highlight the last column.

.highlightFirstColumn

.highlightFirstColumn : Boolean

The .highlightFirstColumn property indicates whether to highlight the first column.

.theme

.theme : cs.ViewPro.TableThemeOptions
.theme : Text

The .theme property defines a table theme. If Text: name of a native SpreadJS theme.

TableThemeOptions

.firstColumnStripSize

.firstColumnStripSize : Integer

The .firstColumnStripSize property is the size of the first alternating column. Par défaut=1

.firstColumnStripStyle

.firstColumnStripStyle : cs.ViewPro.TableStyle

The .firstColumnStripStyle property is the style of the first alternating column.

.firstFooterCellStyle

.firstFooterCellStyle : cs.ViewPro.TableStyle

The .firstFooterCellStyle property is the style of the first footer cell. "highlightFirstColumn" must be true.

.firstHeaderCellStyle

.firstHeaderCellStyle : cs.ViewPro.TableStyle

The .firstHeaderCellStyle property is the style of the first header cell. "highlightFirstColumn" must be true.

.firstRowStripSize

.firstRowStripSize : Integer

The .firstRowStripSize property is the size of the first alternating column. Par défaut=1.

.firstRowStripStyle

.firstRowStripStyle : cs.ViewPro.TableStyle

The .firstRowStripStyle property is the first alternating row style.

.footerRowStyle

.footerRowStyle : cs.ViewPro.TableStyle

The .footerRowStyle property is the default style of the footer area.

.headerRowStyle

.headerRowStyle : cs.ViewPro.TableStyle

The .headerRowStyle property is the default style of the header area.

.highlightFirstColumnStyle

.highlightFirstColumnStyle : cs.ViewPro.TableStyle

The .highlightFirstColumnStyle property is the style of the first column. "highlightFirstColumn" must be true.

.highlightLastColumnStyle

.highlightLastColumnStyle : cs.ViewPro.TableStyle

The .highlightLastColumnStyle property is the style of the last column. "highlightLastColumn" must be true.

.lastFooterCellStyle

.lastFooterCellStyle : cs.ViewPro.TableStyle

The .lastFooterCellStyle property is the style of the last footer cell. "highlightLastColumn" must be true.

.lastHeaderCellStyle

.lastHeaderCellStyle : cs.ViewPro.TableStyle

The .lastHeaderCellStyle property is the style of the last header cell. "highlightLastColumn" must be true.

.name

.name : Text

The .name property is the name of a native SpreadJS theme.

.secondColumnStripSize

.secondColumnStripSize : Integer

The .secondColumnStripSize property is the size of the second alternating column. Par défaut=1

.secondColumnStripStyle

.secondColumnStripStyle : cs.ViewPro.TableStyle

The .secondColumnStripStyle property is the style of the second alternating column.

.secondRowStripSize

.secondRowStripSize : Integer

The .secondRowStripSize property is the size of the second alternating column. Par défaut=1.

.secondRowStripStyle

.secondRowStripStyle : cs.ViewPro.TableStyle

The .secondRowStripStyle property is the second alternating row style.

.wholeTableStyle

.wholeTableStyle : cs.ViewPro.TableStyle

The .wholeTableStyle property is the default style of the data area.