-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add presentation types section
- Loading branch information
1 parent
a2698f0
commit 3584449
Showing
6 changed files
with
68 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import useBaseUrl from '@docusaurus/useBaseUrl'; | ||
|
||
# Presentation Types | ||
|
||
The `presentationType` option within the `PortalOptions` interface allows you to specify how the microapp will be presented to users. This section of the documentation provides an example of the available presentation types. | ||
|
||
## Push | ||
|
||
```typescript | ||
const portalOptions: PortalOptions = { | ||
name: 'Portal Name'; | ||
presentationType: 'push'; | ||
} | ||
``` | ||
|
||
<em | ||
style={{ | ||
textAlign: 'center', | ||
display: 'block', | ||
}} | ||
> | ||
<img src={useBaseUrl('/img/super-capacitor/presentation-types/push.gif')} width="300px" /> | ||
</em> | ||
## Modal | ||
|
||
### FullScreen | ||
|
||
```typescript | ||
const portalOptions: PortalOptions = { | ||
name: 'Portal Name'; | ||
presentationType: 'modal'; | ||
modalStyle: 'fullScreen'; | ||
} | ||
``` | ||
|
||
<em | ||
style={{ | ||
textAlign: 'center', | ||
display: 'block', | ||
}} | ||
> | ||
<img src={useBaseUrl('/img/super-capacitor/presentation-types/fullscreen.gif')} width="300px" /> | ||
</em> | ||
### PageSheet | ||
|
||
```typescript | ||
const portalOptions: PortalOptions = { | ||
name: 'Portal Name'; | ||
presentationType: 'modal'; | ||
modalStyle: 'pageSheet'; | ||
} | ||
``` | ||
|
||
<em | ||
style={{ | ||
textAlign: 'center', | ||
display: 'block', | ||
}} | ||
> | ||
<img src={useBaseUrl('/img/super-capacitor/presentation-types/pagesheet.gif')} width="300px" /> | ||
</em> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.