Skip to content

Commit 6b74b52

Browse files
committed
Update readme.md
1 parent f605f4e commit 6b74b52

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

src/components/flexible-layout/readme.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,41 @@ Type: `Promise<void>`
9898

9999

100100

101+
### `updateSelectedWidget(parentLeafId: string, newSelectedWidgetId: string) => Promise<void>`
102+
103+
Update the selected widget from a `"tabbed"` type leaf.
104+
Only works if the parent leaf is `"tabbed"` type.
105+
106+
#### Parameters
107+
108+
| Name | Type | Description |
109+
| --------------------- | -------- | ----------- |
110+
| `parentLeafId` | `string` | |
111+
| `newSelectedWidgetId` | `string` | |
112+
113+
#### Returns
114+
115+
Type: `Promise<void>`
116+
117+
118+
119+
### `updateWidgetInfo(widgetId: string, properties: Partial<Omit<FlexibleLayoutWidget, "id" | "wasRendered">>) => Promise<void>`
120+
121+
Update the widget info.
122+
123+
#### Parameters
124+
125+
| Name | Type | Description |
126+
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
127+
| `widgetId` | `string` | |
128+
| `properties` | `{ startImgSrc?: string; startImgType?: ImageRender; name?: string; renderId?: string; addWrapper?: boolean; conserveRenderState?: boolean; }` | |
129+
130+
#### Returns
131+
132+
Type: `Promise<void>`
133+
134+
135+
101136

102137
## Dependencies
103138

0 commit comments

Comments
 (0)