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: docs/apps/3_app-runnable-panel.mdx
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -260,6 +260,16 @@ Use the `getAgGrid` function to get the ag-grid instance of a table.
260
260
getAgGrid(id: string)
261
261
```
262
262
263
+
### setSelectedIndex
264
+
265
+
Use the `setSelectedIndex` function to select a row in a table or an AG Grid table.
266
+
267
+
#### Syntax
268
+
269
+
```js
270
+
setSelectedIndex(id: string, index: number)
271
+
```
272
+
263
273
### setValue
264
274
265
275
The `setValue` function is meant to set or force the value of a component. This can be convenient in cases where connection is not the easiest pattern.
@@ -282,6 +292,7 @@ Note that it's a bad idea to mix dynamic default value and setValue together.
-[Rich Text Editor](./4_app_configuration_settings/rich_text_editor.mdx)
285
296
286
297
#### Parameters
287
298
@@ -300,17 +311,16 @@ Button and Form components can trigger other components to recompute. For exampl
300
311
Caching an app inline script means caching the results of that script for a certain duration. If the script is triggered with the same inputs during the given duration, it will return the cached result.
You can enable caching for an app inline script directly its editor settings. Here's how you can do it:
311
322
312
323
1.**Settings**: From the Code Editor, go to the top bar and pick the `Cache` tab.
313
-
314
324
2.**Enable Caching**: To enable caching, toggle on "Cache the results for each possible inputs" and specify the desired duration for caching results (in seconds.)
315
325
316
326
In the above example, the result of step the script will be cached for 5 minutes. If `Inline Script 0` is re-triggered with the same input within this period, Windmill will immediately return the cached result.
0 commit comments