Message Box

Longbridge Message Center Plugin v1.0

Quick Actions
API Configuration
Configuration

Controls the visual appearance of the message panel

Sets the display language for all UI text

API Methods
MessageBox.open()
Open the message panel. Auto-initializes if needed.
MessageBox.close()
Close the message panel.
MessageBox.init(options?)
Explicitly initialize with custom options.
MessageBox.setTheme(theme)
Change theme: 'light' | 'dark' | 'auto'
MessageBox.setLocale(locale)
Change locale: 'zh-CN' | 'en' | 'zh-HK'
MessageBox.getState()
Get current state object.
MessageBox.destroy()
Cleanup and remove the plugin.
Current State
isOpen false
theme light
locale en
activeGroupId null
isMobile false
Usage Example
// ES Module import { MessageBox } from 'message-box.es.js'; // Open panel (auto init) MessageBox.open(); // Configure MessageBox.setTheme('dark'); MessageBox.setLocale('zh-CN');

Runtime Configuration

MessageBox Options

Initialization Options
theme light
locale zh-CN
Runtime State
isOpen false
isMobile false
activeGroupId null
Available Locales
简体中文 zh-CN
English en
繁體中文 zh-HK
Available Themes
Light Mode light
Dark Mode dark
Auto (System) auto
Console Output
[--:--:--] Ready. Click "Open" to start.