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
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,7 @@ Terminal tag support event table
158
158
| exec-cmd | Fired when a custom command is executed. `success` and `failed` are callback functions, **must call one of the two callbacks before echoing**! the meaning of the `success` callback parameter is described below, and the `failed` callback parameter is a string. |`(cmdKey, command, success, failed, name)`|
159
159
| before-exec-cmd | Triggered before the user presses Enter to execute the command. |`(cmdKey, command, name)`|
160
160
| on-keydown | When the cursor focus is obtained, press any keyboard to trigger. |`(event, name)`|
161
-
| on-click | Triggered when the user clicks the button, the parameter `key` is the unique identification of the button, there are buttons: `close`, `minScreen`, `fullScreen`, `title`. |`(key, name)`|
161
+
| on-click | Triggered when the user clicks the button, the parameter `key` is the unique identification of the button, there are buttons: `close`, `minScreen`, `fullScreen`, `title`, `pin`.|`(key, name)`|
162
162
| init-before | Lifecycle function, triggered before plugin initialization. |`(name)`|
163
163
| init-complete | Lifecycle function, triggered after plugin initialization is complete. |`(name)`|
164
164
| on-active | Triggered when the window is active. |`(name)`|
@@ -715,6 +715,7 @@ The complete configuration structure of `dragConf` is as follows:
715
715
| height | Drag window height, which can be a number (in px) or a percentage (relative to the browser window). | number/string |
716
716
| zIndex | Window level, this value can be modified and monitored by the terminal, which can be used for multi-window level control, default 100. | number |
717
717
| init | Window initialization position, if not filled, the default position is in the center of the browser window, where x and y are in px. ``` {"x": 700, "y": 500}```| object |
718
+
| pinned | Pinned window, once pinned, it cannot be dragged, and the pin will be triggered in the `on-click` event when the button is clicked to modify this value. | boolean |
0 commit comments