Class: FEventName
Extends
IFSheetEventMixin
.IFSheetFilterEventMixin
.ICommentEventMixin
.IDataValidationEvent
.IFSheetLinkEvent
.IFSheetSortEventMixin
.IPivotTableEventMixin
.IFSheetSparklineEventMixin
.IFSheetsUIEventNameMixin
.IFDrawingEventNameMixin
.IFSheetCrosshairHighlightEventMixin
.IFSheetPrintEventName
Properties
Property | Modifier | Type | Description |
---|---|---|---|
|
|
Trigger this event before the clipboard content changes. Type of the event parameter is IBeforeClipboardChangeParam Example
| |
|
|
Trigger this event before pasting. Type of the event parameter is IBeforeClipboardPasteParam Example
| |
|
|
Event fired before comment added See Example
| |
|
|
Event fired before comment delete See IBeforeSheetCommentDeleteEvent Example
| |
|
|
Event fired before comment resolve See Example
| |
|
|
Event fired before comment update See IBeforeSheetCommentUpdateEvent Example
| |
|
|
Triggered before floating image change. Type of the event parameter is IBeforeOverGridImageChangeParam Example
| |
|
|
Triggered before floating image insertion. Type of the event parameter is IBeforeOverGridImageInsertParam Example
| |
|
|
Triggered before floating image removal. Type of the event parameter is IBeforeOverGridImageRemoveParam Example
| |
|
|
Triggered before floating image selection. Type of the event parameter is IBeforeOverGridImageSelectParam Example
| |
|
|
The before pivot table add event.The event parameter is IPivotTableAddedEventParams Example
| |
|
|
The before pivot table moved event.The event parameter is IPivotTableMovedEventParams Example
| |
|
|
Event fired before a rule is added See IBeforeSheetDataValidationAddEvent Example
| |
|
|
Event fired before the criteria of a rule are updated See IBeforeSheetDataValidationCriteriaUpdateEvent Example
| |
|
|
Event fired before a rule is deleted See IBeforeSheetDataValidationDeleteEvent Example
| |
|
|
Event fired before all rules are deleted See IBeforeSheetDataValidationDeleteAllEvent Example
| |
|
|
Event fired before the options of a rule are updated See IBeforeSheetDataValidationOptionsUpdateEvent Example
| |
|
|
Event fired before the range of a rule is updated See IBeforeSheetDataValidationRangeUpdateEvent Example
| |
|
|
Event fired before a cell edit ends See IBeforeSheetEditEndEventParams Example
| |
|
|
Event fired before a cell is edited See IBeforeSheetEditStartEventParams Example
| |
|
|
Event triggered before adding a link Example
| |
|
|
Event triggered before canceling a link Example
| |
|
|
Event triggered before updating a link Example
| |
|
|
Event triggered before print operation is canceled Example
| |
|
|
Event triggered before print settings are confirmed Example
| |
|
|
Event triggered before print dialog opens Example
| |
|
|
Event fired before zoom changed See Example
| |
|
|
Event fired when a cell is clicked See Example
| |
|
|
Event fired when a cell is hovered See Example
| |
|
|
Event fired when a cell is pointer down See Example
| |
|
|
Event fired when move on spreadsheet cells See Example
| |
|
|
Event fired when a cell is pointer up See Example
| |
|
|
Trigger this event after the clipboard content changes. Type of the event parameter is IClipboardChangedParam Example
| |
|
|
Trigger this event after pasting. Type of the event parameter is IClipboardPastedParam Example
| |
|
|
Triggered when a column header is clicked Param Event parameters containing unitId, subUnitId, and column index Example
| |
|
|
Triggered when pointer hovers over a column header Param Event parameters containing unitId, subUnitId, and column index Example
| |
|
|
Triggered when pointer is pressed down on a column header Param Event parameters containing unitId, subUnitId, and column index Example
| |
|
|
Triggered when pointer is released on a column header Param Event parameters containing unitId, subUnitId, and column index Example
| |
|
|
Event fired after comment added See Example
| |
|
|
Event fired after comment deleted See Example
| |
|
|
Event fired after comment resolve See Example
| |
|
|
Event fired after comment updated See Example
| |
|
|
Triggered when the crosshair highlight color is changed. Example
| |
|
|
Triggered when the crosshair highlight is enabled or disabled. Example
| |
|
|
Event fired when drag over spreadsheet cells See Example
| |
|
|
Event fired when drop on spreadsheet cells See Example
| |
|
|
Triggered after floating image change. Type of the event parameter is IOverGridImageChangedParam Example
| |
|
|
Triggered after floating image insertion. Type of the event parameter is IOverGridImageInsertedParam Example
| |
|
|
Triggered after floating image removal. Type of the event parameter is IOverGridImageRemovedParam Example
| |
|
|
Triggered after floating image selection. Type of the event parameter is IOverGridImageSelectedParam Example
| |
|
|
The pivot table added event.The event parameter is IPivotTableAddedEventParams Example
| |
|
|
The pivot table field added event. The event parameter is IAddPivotFieldCommandParams Example
| |
|
|
The pivot table field collapse changed event. The event parameter is ISetPivotCollapseCommandParams Example
| |
|
|
The pivot table field filter changed event. The event parameter is ISetPivotFilterCommandParams Example
| |
|
|
The pivot table field moved event. The event parameter is IMovePivotFieldCommandParams Example
| |
|
|
The pivot table field removed event. The event parameter is IRemovePivotFieldCommandParams Example
| |
|
|
The pivot table field setting changed event. The event parameter is IUpdatePivotFieldSettingCommandParams Example
| |
|
|
The pivot table field sort changed event. The event parameter is ISetPivotSortCommandParams Example
| |
|
|
The pivot table moved event. The event parameter is IPivotTableMovedEventParams Example
| |
|
|
The pivot table removed event. The event parameter is IPivotTableRemovedEventParams Example
| |
|
|
The pivot table value position changed event. The event parameter is IUpdatePivotValuePositionCommandParams Example
| |
|
|
Triggered when a row header is clicked Param Event parameters containing unitId, subUnitId, and row index Example
| |
|
|
Triggered when pointer hovers over a row header Param Event parameters containing unitId, subUnitId, and row index Example
| |
|
|
Triggered when pointer is pressed down on a row header Param Event parameters containing unitId, subUnitId, and row index Example
| |
|
|
Triggered when pointer is released on a row header Param Event parameters containing unitId, subUnitId, and row index Example
| |
|
|
Event fired when scroll spreadsheet. See Example
| |
|
|
Event fired when selection changed. See Example
| |
|
|
Event fired when selection move end See Example
| |
|
|
Event fired when selection move start See Example
| |
|
|
Event fired when selection move end See Example
| |
|
|
This event will be emitted before the filter criteria on a column is changed. Type of the event is ISheetRangeFilteredParams. Example
| |
|
|
This event will be emitted after the filter on a worksheet is cleared. Type of the event is ISheetRangeFilterClearedEventParams. Example
| |
|
|
This event will be emitted before sorting a range on a worksheet. Type of the event is ISheetRangeSortParams. Example
| |
|
|
Event fired when a rule is added, deleted, or modified See ISheetDataValidationChangedEvent Example
| |
|
|
Event fired when a cell validator status is changed See ISheetDataValidatorStatusChangedEvent Example
| |
|
|
Event fired when a cell is being edited See Example
| |
|
|
Event fired after a cell edit ends See Example
| |
|
|
Event fired after a cell is edited See Example
| |
|
|
Event triggered when print operation is canceled Example
| |
|
|
Event triggered when print settings are confirmed Example
| |
|
|
Event triggered when print dialog opens Example
| |
|
|
This event will be emitted when the filter on a worksheet is cleared. Type of the event is ISheetRangeFilterClearedEventParams. Example
| |
|
|
This event will be emitted when the filter criteria on a column is changed. Type of the event is ISheetRangeFilteredParams. Example
| |
|
|
This event will be emitted when a range on a worksheet is sorted. Type of the event is ISheetRangeSortedParams. Example
| |
|
|
Event fired when sheet skeleton changed See Example
| |
|
|
Trigger this event after the sparkline changes. Type of the event parameter is IFSheetSparklineChangedEventParams Example
| |
|
|
Event fired when sheet value changed Example
| |
|
|
Event fired when zoom changed See Example
|
Accessors
ActiveSheetChanged
Get Signature
get ActiveSheetChanged(): "ActiveSheetChanged"
Event fired after the active sheet changes
See
Example
univerAPI.addEvent(univerAPI.Event.ActiveSheetChanged, (params) => {
const { workbook, activeSheet } = params;
console.log('after active sheet changed', params);
});
Returns
"ActiveSheetChanged"
BeforeActiveSheetChange
Get Signature
get BeforeActiveSheetChange(): "BeforeActiveSheetChange"
Event fired before the active sheet changes
See
Example
univerAPI.addEvent(univerAPI.Event.ActiveSheetChanged, (params) => {
const { workbook, activeSheet, oldActiveSheet } = params;
console.log('before active sheet changed', params);
});
Returns
"BeforeActiveSheetChange"
BeforeCommandExecute
Get Signature
get BeforeCommandExecute(): "BeforeCommandExecute"
Event fired before a command is executed
See
Example
univerAPI.addEvent(univerAPI.event.BeforeCommandExecute, (event) => {
const { params, id, type } = event;
console.log('command executed', event);
});
Returns
"BeforeCommandExecute"
BeforeGridlineColorChange
Get Signature
get BeforeGridlineColorChange(): "BeforeGridlineColorChange"
Event fired before gridline color changed
See
Example
univerAPI.addEvent(univerAPI.Event.BeforeGridlineColorChange, (params) => {
const { workbook, worksheet, color } = params;
console.log('gridline changed', params);
});
Returns
"BeforeGridlineColorChange"
BeforeGridlineEnableChange
Get Signature
get BeforeGridlineEnableChange(): "BeforeGridlineEnableChange"
Event fired before gridline enable changed
See
Example
univerAPI.addEvent(univerAPI.Event.BeforeGridlineEnableChange, (params) => {
const { workbook, worksheet, enabled } = params;
console.log('gridline changed', params);
});
Returns
"BeforeGridlineEnableChange"
BeforeRedo
Get Signature
get BeforeRedo(): "BeforeRedo"
Event fired before a redo command is executed
See
Example
univerAPI.addEvent(univerAPI.event.BeforeRedo, (event) => {
const { params, id, type } = event;
console.log('command executed', event);
});
Returns
"BeforeRedo"
BeforeSheetCreate
Get Signature
get BeforeSheetCreate(): "BeforeSheetCreate"
Event fired before a sheet is created
See
Example
univerAPI.addEvent(univerAPI.Event.BeforeSheetCreate, (params) => {
const { workbook, index, sheet } = params;
console.log('before sheet create', params);
});
Returns
"BeforeSheetCreate"
BeforeSheetDelete
Get Signature
get BeforeSheetDelete(): "BeforeSheetDelete"
Event fired before a sheet is deleted
See
Example
univerAPI.addEvent(univerAPI.Event.BeforeSheetDelete, (params) => {
const { workbook, worksheet } = params;
console.log('before sheet delete', params);
});
Returns
"BeforeSheetDelete"
BeforeSheetHideChange
Get Signature
get BeforeSheetHideChange(): "BeforeSheetHideChange"
Event fired before a sheet is hidden
See
Example
univerAPI.addEvent(univerAPI.Event.BeforeSheetHideChange, (params) => {
const { workbook, worksheet, hide } = params;
console.log('before sheet hide changed', params);
});
Returns
"BeforeSheetHideChange"
BeforeSheetMove
Get Signature
get BeforeSheetMove(): "BeforeSheetMove"
Event fired before a sheet is moved
See
Example
univerAPI.addEvent(univerAPI.Event.BeforeSheetMove, (params) => {
const { workbook, worksheet, newIndex, oldIndex } = params;
console.log('before sheet move', params);
});
Returns
"BeforeSheetMove"
BeforeSheetNameChange
Get Signature
get BeforeSheetNameChange(): "BeforeSheetNameChange"
Event fired before a sheet name is changed
See
Example
univerAPI.addEvent(univerAPI.Event.BeforeSheetNameChange, (params) => {
const { workbook, worksheet, newName, oldName } = params;
console.log('before sheet name changed', params);
});
Returns
"BeforeSheetNameChange"
BeforeSheetTabColorChange
Get Signature
get BeforeSheetTabColorChange(): "BeforeSheetTabColorChange"
Event fired before a sheet tab color is changed
See
IBeforeSheetTabColorChangeEvent
Example
univerAPI.addEvent(univerAPI.Event.BeforeSheetTabColorChange, (params) => {
const { workbook, worksheet, color, oldColor } = params;
console.log('before sheet tab color changed', params);
});
Returns
"BeforeSheetTabColorChange"
BeforeUndo
Get Signature
get BeforeUndo(): "BeforeUndo"
Event fired before an undo command is executed
See
Example
univerAPI.addEvent(univerAPI.event.BeforeUndo, (event) => {
const { params, id, type } = event;
console.log('command executed', event);
});
Returns
"BeforeUndo"
CommandExecuted
Get Signature
get CommandExecuted(): "CommandExecuted"
Event fired when a command is executed
See
Example
univerAPI.addEvent(univerAPI.event.CommandExecuted, (event) => {
const { params, id, type } = event;
console.log('command executed', event);
});
Returns
"CommandExecuted"
DocCreated
Get Signature
get DocCreated(): "DocCreated"
Event fired when a document is created
See
Example
univerAPI.addEvent(univerAPI.event.DocCreated, (params) => {
const { unitId, type, doc, unit } = params;
console.log('doc created', params);
});
Returns
"DocCreated"
DocDisposed
Get Signature
get DocDisposed(): "DocDisposed"
Event fired when a document is disposed
See
Example
univerAPI.addEvent(univerAPI.event.DocDisposed, (params) => {
const { unitId, unitType, snapshot } = params;
console.log('doc disposed', params);
});
Returns
"DocDisposed"
GridlineChanged
Get Signature
get GridlineChanged(): "GridlineChanged"
Event fired when gridline changed
See
Example
univerAPI.addEvent(univerAPI.Event.GridlineChanged, (params) => {
const { workbook, worksheet, enabled, color } = params;
console.log('gridline changed', params);
});
Returns
"GridlineChanged"
LifeCycleChanged
Get Signature
get LifeCycleChanged(): "LifeCycleChanged"
Event fired when life cycle is changed
See
Example
univerAPI.addEvent(univerAPI.event.LifeCycleChanged, (params) => {
const { stage } = params;
console.log('life cycle changed', params);
});
Returns
"LifeCycleChanged"
Redo
Get Signature
get Redo(): "Redo"
Event fired when a redo command is executed
See
Example
univerAPI.addEvent(univerAPI.event.Redo, (event) => {
const { params, id, type } = event;
console.log('command executed', event);
});
Returns
"Redo"
SheetCreated
Get Signature
get SheetCreated(): "SheetCreated"
Event fired after a sheet is created
See
Example
univerAPI.addEvent(univerAPI.Event.SheetCreated, (params) => {
const { workbook, worksheet } = params;
console.log('sheet created', params);
});
Returns
"SheetCreated"
SheetDeleted
Get Signature
get SheetDeleted(): "SheetDeleted"
Event fired before a sheet is deleted
See
Example
univerAPI.addEvent(univerAPI.Event.BeforeSheetDelete, (params) => {
const { workbook, worksheetId } = params;
console.log('before sheet delete', params);
});
Returns
"SheetDeleted"
SheetHideChanged
Get Signature
get SheetHideChanged(): "SheetHideChanged"
Event fired after a sheet is hidden
See
Example
univerAPI.addEvent(univerAPI.Event.SheetHideChanged, (params) => {
const { workbook, worksheet } = params;
console.log('sheet hide changed', params);
});
Returns
"SheetHideChanged"
SheetMoved
Get Signature
get SheetMoved(): "SheetMoved"
Event fired after a sheet is moved
See
Example
univerAPI.addEvent(univerAPI.Event.SheetMoved, (params) => {
const { workbook, worksheet, newIndex } = params;
console.log('sheet moved', params);
});
Returns
"SheetMoved"
SheetNameChanged
Get Signature
get SheetNameChanged(): "SheetNameChanged"
Event fired after a sheet name is changed
See
Example
univerAPI.addEvent(univerAPI.Event.SheetNameChanged, (params) => {
const { workbook, worksheet, newName } = params;
console.log('sheet name changed', params);
});
Returns
"SheetNameChanged"
SheetTabColorChanged
Get Signature
get SheetTabColorChanged(): "SheetTabColorChanged"
Event fired after a sheet tab color is changed
See
Example
univerAPI.addEvent(univerAPI.Event.SheetTabColorChanged, (params) => {
const { workbook, worksheet, color } = params;
console.log('sheet tab color changed', params);
});
Returns
"SheetTabColorChanged"
Undo
Get Signature
get Undo(): "Undo"
Event fired when an undo command is executed
See
Example
univerAPI.addEvent(univerAPI.event.Undo, (event) => {
const { params, id, type } = event;
console.log('command executed', event);
});
Returns
"Undo"
WorkbookCreated
Get Signature
get WorkbookCreated(): "WorkbookCreated"
Event fired after a workbook is created
See
Example
univerAPI.addEvent(univerAPI.Event.WorkbookCreated, (params) => {
const { unitId, type, workbook, unit } = params;
console.log('workbook created', params);
});
Returns
"WorkbookCreated"
WorkbookDisposed
Get Signature
get WorkbookDisposed(): "WorkbookDisposed"
Event fired after a workbook is disposed
See
Example
univerAPI.addEvent(univerAPI.Event.WorkbookDisposed, (params) => {
const { unitId, unitType, snapshot } = params;
console.log('unit disposed', params);
});
Returns
"WorkbookDisposed"
Methods
get()
static get(): FEventName