File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,19 @@ Portals and PortalOutlets are low-level building blocks that other concepts, suc
10
10
built upon.
11
11
12
12
##### ` Portal<T> `
13
- | Method | Description |
14
- | --- | --- |
15
- | ` attach(PortalOutlet): Promise<T> ` | Attaches the portal to a host. |
16
- | ` detach(): Promise< void> ` | Detaches the portal from its host. |
17
- | ` isAttached: boolean ` | Whether the portal is attached. |
13
+ | Method | Description |
14
+ | --------------------------- | -------------------------------- --- |
15
+ | ` attach(PortalOutlet): T ` | Attaches the portal to a host. |
16
+ | ` detach(): void ` | Detaches the portal from its host. |
17
+ | ` isAttached: boolean ` | Whether the portal is attached. |
18
18
19
19
##### ` PortalOutlet `
20
- | Method | Description |
21
- | --- | --- |
22
- | ` attach(Portal): Promise<void> ` | Attaches a portal to the host. |
23
- | ` detach(): Promise<void> ` | Detaches the portal from the host. |
24
- | ` dispose(): Promise< void> ` | Permanently dispose the host. |
25
- | ` hasAttached: boolean ` | Whether a portal is attached to the host. |
20
+ | Method | Description |
21
+ | ----------------------- | ---------------------------------------- --- |
22
+ | ` attach(Portal): any ` | Attaches a portal to the host. |
23
+ | ` detach(): any ` | Detaches the portal from the host. |
24
+ | ` dispose(): void ` | Permanently dispose the host. |
25
+ | ` hasAttached: boolean ` | Whether a portal is attached to the host. |
26
26
27
27
28
28
#### Portals in practice
You can’t perform that action at this time.
0 commit comments