Skip to contents

A screen drawn over the current one. See modal().

Super classes

Widget -> Screen -> ModalScreen

Public fields

dim

Dim the screens below?

dismissable

Close with Escape?

on_dismiss

NULL or function(result, app) called when the screen is dismissed.

Methods

Inherited methods


ModalScreen$new()

Create a modal screen. See modal().

Usage

ModalScreen$new(
  ...,
  dim = TRUE,
  dismissable = TRUE,
  on_dismiss = NULL,
  id = NULL,
  classes = NULL,
  style = NULL
)

Arguments

...

Child widgets.

dim, dismissable

See fields.

on_dismiss

Callback.

id, classes, style

See Widget.


ModalScreen$default_style()

The built-in style: content centred.

Usage

ModalScreen$default_style()


ModalScreen$default_bindings()

Escape closes the screen (when dismissable).

Usage

ModalScreen$default_bindings()


ModalScreen$dismiss()

Close the screen, passing result to the callbacks.

Usage

ModalScreen$dismiss(result = NULL)

Arguments

result

Any value.


ModalScreen$action_dismiss()

Action used by the Escape binding.

Usage

ModalScreen$action_dismiss()


ModalScreen$clone()

The objects of this class are cloneable with this method.

Usage

ModalScreen$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.