PadCodedocs

Open as Sheet

Shows a screen over the current one: as a sheet that slides up, or full screen.

Category: Navigation

#When to use it

Use it for a short task on top of the current screen, like writing a new note or picking a filter, that the person finishes and closes.

#Example

A New note button, When Tapped: Open as Sheet with Screen: the new-note screen, As: Sheet. On that screen, the Save button ends with Go Back / Close.

#Good to know

  • The screen opens with its title and a Close button at the top. Full Screen covers everything; a sheet can also be swiped down.
  • The steps after Open as Sheet run right away, without waiting for it to close. Put what should happen afterwards in On Dismiss: those steps run when the sheet closes, however it's closed.

#Add it

Select a view, open the Inspector's Actions tab, pick when it runs, tap Add action and choose Open as Sheet (under Navigation). Tap the step to open its settings.

#Settings

SettingWhat it doesKindDefault
ScreenThe screen to show.ScreenRequired
AsHow to show it: Sheet slides up over the screen, Full Screen covers it. Popover shows as a sheet for now.Choice: Sheet, Full Screen, Popoversheet
WithValues for the screen's params.FieldsOptional
On DismissSteps to run when it closes.StepsOptional

#See also