Developer_release_1.4.0
Class mint.backoffice_messages
Module for send messages to the backoffice 'OEM settings' page.
Usage:
bm = require 'mint.backoffice_messages' -- Usage: -- bm:MSG_TYPE('message text') -- where MSG_TYPE is required message type bm:message('message text') -- send message with the 'message' message type
Methods
mint.backoffice_messages:MSG_TYPE (text, clear_messages) | Send message to the backoffice 'OEM settings' page with
MSG_TYPE message type. |
Methods
- mint.backoffice_messages:MSG_TYPE (text, clear_messages)
-
Send message to the backoffice 'OEM settings' page with
MSG_TYPE
message type. ReplaceMSG_TYPE
with actual type.Parameters:
- text string Message to send
- clear_messages boolean Clear messages before show flag
Returns:
true
(on success)Or
-
nil
- string Error message (on failure)
Usage:
bm = require 'mint.backoffice_messages' bm:message('message text') -- send message with the 'message' message type bm:error('error text') -- send message with the 'error' message type bm:info('info text') -- send message with the 'info' message type bm:info('info text', true) -- send message with the 'info' message type, -- the messages log will be cleared