You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Destroys plugin instance and removes all subscribers
526
538
*/
@@ -748,18 +760,6 @@ Returns a callback function to trigger one or more action effects for a given ac
748
760
function useActionTrigger(configId: string): () => void;
749
761
```
750
762
751
-
#### triggerActionCallback();
752
-
753
-
Arguments
754
-
755
-
- `configId : string` - The config ID corresponding to the action trigger
756
-
757
-
The function that can be called to asynchronously trigger the action
758
-
759
-
```ts
760
-
function triggerActionCallback(configId: string): void;
761
-
```
762
-
763
763
#### useActionEffect()
764
764
765
765
Registers and unregisters an action effect within the plugin
@@ -773,6 +773,16 @@ Arguments
773
773
- `configId : string` - The config ID corresponding to the action effect
774
774
- `effect : Function` - The function to be called when the effect is triggered
775
775
776
+
#### usePluginStyle()
777
+
778
+
Returns style properties from the workbook with live updates
779
+
780
+
```ts
781
+
function usePluginStyle(): PluginStyle | undefined;
782
+
```
783
+
784
+
> **Note:** Currently, the `PluginStyle` interface only supports the `backgroundColor` property. This property reflects the background color set in the workbook for the plugin element.
785
+
776
786
#### useConfig()
777
787
778
788
Returns the workbook element’s current configuration. If a key is provided, only
0 commit comments