Client
Client Exports
MAD Tablet – Client-Side Exports
Documentation of all client-side exports available in the mad-tablet resource.
📱 Core Tablet Functions
RegisterApp(appConfig)
RegisterApp(appConfig)Registers an external application in the tablet system.
Parameters
{
id = string, -- Required: Unique app identifier
name = string, -- Required: App display name
icon = string, -- Optional: Material Icons name (default: 'apps')
color = string, -- Optional: Hex color (default: '#6366f1')
resourceName = string, -- Optional: Resource name (default: invoking resource)
isVisible = function -- Optional: Returns boolean to control visibility
}Returns
boolean—trueif registration was successful
Example
UnregisterApp(appId)
UnregisterApp(appId)Removes an app from the tablet.
Parameters
appId(string)
Returns
boolean
Example
IsTabletOpen()
IsTabletOpen()Checks if the tablet is currently open.
Returns
boolean
OpenTablet()
OpenTablet()CloseTablet()
CloseTablet()OpenApp(appId)
OpenApp(appId)Opens a specific app. Automatically opens the tablet if closed.
SendMessage(action, data)
SendMessage(action, data)Sends a general message to the tablet React UI.
sendReactMessage(params)
sendReactMessage(params)Sends a message to a specific app iframe.
Parameters
Returns
boolean
Example
⚠️ Important:
iframeIdmust exactly match theidused inRegisterApp.
🔔 ShowNotification(title, message, color, autoClose)
ShowNotification(title, message, color, autoClose)Displays a tablet notification.
Parameters
title(string, optional)message(string)color(string, optional, default:blue)autoClose(number | false, default:5000)
👥 Groups (Client)
GetGroupID()
GetGroupID()IsGroupLeader()
IsGroupLeader()Last updated