ModalPanelStackData

data class ModalPanelStackData(val stackedPanels: DismissablePanelList<ModalPanel>) : DismissablePanelStackData<ModalPanel>

A panel data containing a stack of ModalPanels. The last (top) one should be presented to the user, while the rest is hidden under the top ModalPanel.

Parameters

stackedPanels

The list of ModalPanels in the stack.

Constructors

Link copied to clipboard
fun ModalPanelStackData(stackedPanels: DismissablePanelList<ModalPanel>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val stackedPanels: DismissablePanelList<ModalPanel>

Inherited functions

Link copied to clipboard
fun containsUndismissedPanel(): LiveData<Boolean>

Returns whether the stack contains any Panel of type P that has not been dismissed yet.

Link copied to clipboard
fun dismiss()

Dismisses all panels in the stack.

Link copied to clipboard
fun topOrNull(): ModalPanel?

Gets the top-most panel of the stack.