[]
The following table lists the attributes of the style element.
Attribute | API Reference | Type | Comment |
---|---|---|---|
backColor |
|
| |
backgroundImage |
|
| |
backgroundImageLayout |
|
| |
border |
|
| Setting the border attribute sets borderLeft, borderTop, borderRight, and borderBottom at the same time |
borderBottom |
|
| |
borderLeft |
|
| |
borderRight |
|
| |
borderTop |
|
| |
font |
|
| |
foreColor |
|
| |
formatter |
|
| |
hAlign |
|
| |
locked |
|
| |
shrinkToFit |
|
| |
textIndent |
|
| |
themeFont |
|
| |
vAlign |
|
| |
wordWrap |
|
|
The following table lists the child elements of the style element.
Child Element | API Reference | Count | Type | Comments |
---|---|---|---|---|
dateValidator |
|
|
| |
formulaValidator |
|
|
| |
formulaListValidator |
|
|
| |
listValidator |
|
|
| |
numberValidator |
|
|
| |
textLengthValidator |
|
|
| |
ButtonCellType |
|
|
| If you add more then one cell type to a style, the last cell type overrides the previous cell types |
CheckBoxCellType |
|
|
| If you add more then one cell type to a style, the last cell type overrides the previous cell types |
ComboBoxCellType |
|
|
| If you add more then one cell type to a style, the last cell type overrides the previous cell types |
HyperLinkCellType |
|
|
| If you add more then one cell type to a style, the last cell type overrides the previous cell types |
TextCellType |
|
|
| If you add more then one cell type to a style, the last cell type overrides the previous cell types |
The following example uses a style element.
<gc-spread-sheets id="ss" style="width:100%;height:500px;border:1px solid gray"> <worksheets> <worksheet> <columns> <column> <default-style formatter="#,##0.00"> <number-validator comparisonoperator="GreaterThan" value1="0"></number-validator> </default-style> </column> <column> <default-style> <list-validator list="Japan,Germany,UK,Italy,US"></list-validator> </default-style> </column> <column> <default-style> <button-cell-type text="click me"></button-cell-type> </default-style> </column> </columns> </worksheet> </worksheets> </gc-spread-sheets>