Opal::UI::ModalScreen
Inherits Opal::UI::Screen < Opal::UI::Control < Opal::UI::InputHookable < Opal::UI::Element < Opal::UI::Themable < Reference < Object
Modal Screen inspired by Python Textual's ModalScreen. Automatically dims/blurs the underlying screen, traps keyboard/mouse focus, and returns a typed dismissal result back to the calling screen.
Constructors
Instance methods
dim_backdrop?
Sourcedismiss(result : ModalResult = nil) : Nil
Dismisses the modal screen and passes result to completion callback
dismissed?
SourceDefault key event handler. Override in subclasses if not using @default_input_proc.
on_dismiss
Source