Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vtable",
"comment": "",
"type": "none"
}
],
"packageName": "@visactor/vtable"
}
7 changes: 6 additions & 1 deletion common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions docs/assets/guide/en/plugin/contribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,28 @@ export interface IVTablePlugin {

The `runTime` parameter specifies when the plugin will run, configuring it with event types from `TableEvents`.

The `Gantt` plugin needs to implement the `VTableGantt.plugins.IGanttPlugin` interface.

```ts
// Plugin unified interface
export interface IGanttPlugin {
// Plugin unique identifier
id: string;
// Plugin name
name: string;
// Plugin runtime trigger, if not passed in, will run directly during the Gantt build by default
runTime?: EVENT_TYPES[keyof EVENT_TYPES][];
// Initialization method
run: (...args: any[]) => void;
// Update method, called when Gantt data or configuration updates
update?: () => void;
// Destruction method, called before Gantt instance is destroyed
release?: (gantt: Gantt) => void;
}
```

The `runTime` parameter specifies when the plugin will run, configuring it with event types from `EVENT_TYPES`.

#### Component Lifecycle Process:

<div style="display: flex; justify-content: center; width: 100%;">
Expand Down
Loading
Loading