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
<ImportPathpath="import { Window } from 'cx/widgets';" />
@@ -19,7 +22,47 @@ Windows are overlays with headers, footers, and special appearance. They provide
19
22
<WindowExampleclient:load />
20
23
</CodeExample>
21
24
22
-
Use `putInto="footer"` to place content in the window footer. Add the `dismiss` prop to buttons that should close the window.
25
+
Use `putInto="footer"` or `putInto="header"` to place content in the window footer or header. Add the `dismiss` prop to buttons that should close the window.
26
+
27
+
## Programmatic Windows
28
+
29
+
Windows can also be opened programmatically using `Widget.create` and the `open` method. This approach creates an independent window with its own store:
30
+
31
+
<CodeExamplecode={WindowProgrammaticExampleCode}>
32
+
<WindowProgrammaticExampleclient:load />
33
+
</CodeExample>
34
+
35
+
### Hot Module Replacement (HMR)
36
+
37
+
Programmatic windows have issues with HMR during development - changes to the window content won't reflect until you close and reopen the window. Use `createHotPromiseWindowFactory` or `createHotPromiseWindowFactoryWithProps` to solve this:
0 commit comments