Requests Modal Options
data class RequestsModalOptions(val isRequestsModalVisible: Boolean, val onRequestClose: () -> Unit, val requestCounter: Int, val onRequestFilterChange: (String) -> Unit, val requestList: List<Request>, val onRequestItemPress: (RespondToRequestsOptions) -> Unit = {}, val updateRequestList: (List<Request>) -> Unit, val roomName: String, val socket: Any? = null, val backgroundColor: String = "#83C0E9", val position: String = "topRight", val renderRequestComponent: (RenderRequestComponentOptions) -> Map<String, Any> = { options ->
DefaultRenderRequestComponent(options).render()
}, val parameters: RequestsModalParameters? = null)
Configuration options for the RequestsModal component
Constructors
Link copied to clipboard
constructor(isRequestsModalVisible: Boolean, onRequestClose: () -> Unit, requestCounter: Int, onRequestFilterChange: (String) -> Unit, requestList: List<Request>, onRequestItemPress: (RespondToRequestsOptions) -> Unit = {}, updateRequestList: (List<Request>) -> Unit, roomName: String, socket: Any? = null, backgroundColor: String = "#83C0E9", position: String = "topRight", renderRequestComponent: (RenderRequestComponentOptions) -> Map<String, Any> = { options ->
DefaultRenderRequestComponent(options).render()
}, parameters: RequestsModalParameters? = null)
Properties
Link copied to clipboard
Background color for the modal (hex string)
Link copied to clipboard
Whether the modal is visible
Link copied to clipboard
Callback to close the modal
Link copied to clipboard
Callback for filter/search query changes
Link copied to clipboard
Callback for handling request item actions
Link copied to clipboard
Additional parameters
Link copied to clipboard
Custom function to render each request item
Link copied to clipboard
Count of active requests
Link copied to clipboard
List of current requests to display
Link copied to clipboard
Function to update the request list