ModalOptions

data class ModalOptions(val id: String, val content: MediaSfuUIComponent? = null, val isOpen: Boolean = false, val style: ComponentStyle = ComponentStyle(), val size: ModalSize = ModalSize.Auto, val position: ModalPosition = ModalPosition.Center, val dismissible: Boolean = true, val showBackdrop: Boolean = true, val backdropColor: Color = Color(0f, 0f, 0f, 0.5f), val animateOnOpen: Boolean = true, val animateOnClose: Boolean = true, val animationDuration: Long = 300, val borderRadius: Float = 8.0f, val backgroundColor: Color = Color.White, val padding: EdgeInsets = EdgeInsets.all(16f), val margin: EdgeInsets = EdgeInsets.zero, val shadow: Shadow? = Shadow( color = Color(0f, 0f, 0f, 0.3f), offsetX = 0f, offsetY = 4f, blurRadius = 8f ), val onOpen: () -> Unit? = null, val onClose: () -> Unit? = null, val onDismiss: () -> Unit? = null)

Configuration options for the Modal component.

Constructors

Link copied to clipboard
constructor(id: String, content: MediaSfuUIComponent? = null, isOpen: Boolean = false, style: ComponentStyle = ComponentStyle(), size: ModalSize = ModalSize.Auto, position: ModalPosition = ModalPosition.Center, dismissible: Boolean = true, showBackdrop: Boolean = true, backdropColor: Color = Color(0f, 0f, 0f, 0.5f), animateOnOpen: Boolean = true, animateOnClose: Boolean = true, animationDuration: Long = 300, borderRadius: Float = 8.0f, backgroundColor: Color = Color.White, padding: EdgeInsets = EdgeInsets.all(16f), margin: EdgeInsets = EdgeInsets.zero, shadow: Shadow? = Shadow( color = Color(0f, 0f, 0f, 0.3f), offsetX = 0f, offsetY = 4f, blurRadius = 8f ), onOpen: () -> Unit? = null, onClose: () -> Unit? = null, onDismiss: () -> Unit? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val borderRadius: Float = 8.0f
Link copied to clipboard
Link copied to clipboard
val dismissible: Boolean = true
Link copied to clipboard
val id: String
Link copied to clipboard
val isOpen: Boolean = false
Link copied to clipboard
Link copied to clipboard
val onClose: () -> Unit? = null
Link copied to clipboard
val onDismiss: () -> Unit? = null
Link copied to clipboard
val onOpen: () -> Unit? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val showBackdrop: Boolean = true
Link copied to clipboard
Link copied to clipboard