For desktop clients
Namespace
The namespace is used to combine messages from different message groups.
CODE
// Namespace
var IBI = IBI || {};
IBI.aws = IBI.aws || {};
IBI.aws.remarks = IBI.aws.remarks || {};
Messages
Message group messages are held together by the message group ID in the IBI.aws.remarks
object. The IBI.aws.remarks
object can contain messages from several message groups.
Message object
See Message object
Example
remarks-remarkgroup-1.js
JS
// Namespace
var IBI = IBI || {};
IBI.aws = IBI.aws || {};
IBI.aws.remarks = IBI.aws.remarks || {};
IBI.aws.remarks['2d18fc2d-3f47-4e15-bf38-4091c75040c6'] = [
{
"id": "045d0769-fe49-4a46-b673-ace7e6382a4d",
"reason": {
"default": "Reason",
"de": "Grund"
},
"message": {
"default": "Message",
"de": "Anmerkung"
},
"startTime": {
"value": new Date(2017, 5, 1, 11, 0, 0),
"isVisible": true
},
"endTime": {
"value": new Date(2017, 5, 1, 11, 30, 0),
"isVisible": true
}
}
];