[]
The following table lists all the items in the gc-spread-sheets element.
Attribute | SpreadJS API | Type | Comments |
---|---|---|---|
name |
|
| |
allowUserZoom |
|
| |
allowUserResize |
|
| |
tabStripVisible |
|
| |
tabEditable |
|
| |
newTabVisible |
|
| |
allowUserEditFormula |
|
| |
autoFitType |
|
| |
allowUserDragFill |
|
| |
allowUserDragDrop |
|
| |
allowUserDragMerge |
|
| |
allowUndo |
|
| |
allowUserDeselect |
|
| |
allowSheetReorder |
|
| |
allowContextMenu |
|
| |
allowCopyPasteExcelStyle |
|
| |
allowExtendPasteRange |
|
| |
cutCopyIndicatorVisible |
|
| |
cutCopyIndicatorBorderColor |
|
| |
copyPasteHeaderOptions |
|
| |
defaultDragFillType |
|
| |
enableFormulaTextbox |
|
| |
hideSelection |
|
| |
highlightInvalidData |
|
| |
referenceStyle |
|
| |
backColor |
|
| |
grayAreaBackColor |
|
| |
backgroundImage |
|
| |
backgroundImageLayout |
|
| |
resizeZeroIndicator |
|
| |
showVerticalScrollbar |
|
| |
showHorizontalScrollbar |
|
| |
ShowScrollTip |
|
| |
ShowResizeTip |
|
| |
showDragDropTip |
|
| |
showDragFillTip |
|
| |
showDragFillSmartTag |
|
| |
scrollbarShowMax |
|
| |
scrollbarMaxAlign |
|
| |
scrollIgnoreHidden |
|
| |
tabStripRatio |
|
| |
tabNavigationVisible |
|
| |
useTouchLayout |
|
| |
hostStyle |
| The host element style, the same as the angular’s style binding (such as width: 400px, height: 600px}. | |
hostClass |
| The class name of the host element. |
The following code sample shows how to use the sheet element:
@Component({
selector: 'my-app',
template: `<gc-spread-sheets [backColor]="spreadBackColor" [hostStyle]="hostStyle">
</gc-spread-sheets>`,
})
export class AppComponent {
spreadBackColor = 'aliceblue';
hostStyle = {
width: '800px',
height: '600px'
};
}
The following table lists the sheet events:
Attribute | SpreadJS API | Comments |
---|---|---|
workbookInitialized | Returns the workbook instance, args {spread: workbook} | |
validationError |
| |
cellClick |
| |
cellDoubleClick |
| |
enterCell |
| |
leaveCell |
| |
valueChanged |
| |
topRowChanged |
| |
leftColumnChanged |
| |
invalidOperation |
| |
rangeFiltering |
| |
rangeFiltered |
| |
tableFiltering |
| |
tableFiltered |
| |
rangeSorting |
| |
rangeSorted |
| |
clipboardChanging |
| |
clipboardChanged |
| |
clipboardPasting |
| |
clipboardPasted |
| |
columnWidthChanging |
| |
columnWidthChanged |
| |
rowHeightChanging |
| |
rowHeightChanged |
| |
dragDropBlock |
| |
dragDropBlockCompleted |
| |
dragFillBlock |
| |
dragFillBlockCompleted |
| |
editStarting |
| |
editChange |
| |
editEnding |
| |
editEnd |
| |
editEnded |
| |
rangeGroupStateChanging |
| |
rangeGroupStateChanged |
| |
selectionChanging |
| |
selectionChanged |
| |
sheetTabClick |
| |
sheetTabDoubleClick |
| |
sheetNameChanging |
| |
sheetNameChanged |
| |
userZooming |
| |
userFormulaEntered |
| |
cellChanged |
| |
columnChanged |
| |
rowChanged |
| |
activeSheetChanging |
| |
activeSheetChanged |
| |
sparklineChanged |
| |
rangeChanged |
| |
buttonClicked |
| |
editorStatusChanged |
| |
floatingObjectChanged |
| |
floatingObjectSelectionChanged |
| |
pictureChanged |
| |
floatingObjectRemoving |
| |
floatingObjectRemoved |
| |
pictureSelectionChanged |
| |
floatingObjectLoaded |
| |
touchToolStripOpening |
| |
commentChanged |
| |
commentRemoving |
| |
commentRemoved |
| |
slicerChanged |
|
The following code sample uses an event.
@Component({
selector: 'my-app',
template: `<gc-spread-sheets (workbookInitialized)="workbookInit($event)"
(validationError)="validationError($event)">
</gc-spread-sheets>`,
})
export class AppComponent {
workbookInit (args) {
//do something
}
validationError (args) {
//do something
}
}
The following table lists the child elements:
Child Element | SpreadJS API | Count |
---|---|---|
gc-worksheet |
| any |