MyBoxEu.js - API Tester

MyBoxEuBoxViewer

MyBoxEuBoxViewer - Methods
# Return Method Test
= MyBoxEuBoxViewer.toString();
= MyBoxEuBoxViewer.getBoxProperties();
= MyBoxEuBoxViewer.setRotationSpeed();
= MyBoxEuBoxViewer.setBoxSize();
= MyBoxEuBoxViewer.displayBoxContent();
MyBoxEuBoxViewer - View
Loading...
MyBoxEuBoxViewer - Sample Code
var oMyBoxEuBoxViewerOptions = {
    "container" : "divMyBoxEuBoxViewer",
    "resourceFolder" : "res-MyBoxEu",
    "location" : "Bochum",
    "callback" : onMyBoxEuBoxViewerEvent
};

var oMyBoxEuBoxViewer = new MyBoxEuBoxViewer(oMyBoxEuBoxViewerOptions);

function onMyBoxEuBoxViewerEvent(oEvent) {

    switch (oEvent.id) {
    case oMyBoxEuBoxViewer.EVENT_LOADED:
        console.log(oMyBoxEuBoxViewer.toString() + " is ready");
        break;
    default:
        window.alert(MyBoxEuBoxViewer.toString() + ": unknown MyBoxEuBoxViewer event id: " + oEvent.id);
    }
}

MyBoxEuMapViewer

MyBoxEuMapViewer - Methods
# Return Method Test
= MyBoxEuMapViewer.toString();
= MyBoxEuMapViewer.reset();
= MyBoxEuMapViewer.getBoxesIdList();
= MyBoxEuMapViewer.getBoxProperties("");
= MyBoxEuMapViewer.resetBoxesColor("");
= MyBoxEuMapViewer.focus("");
= MyBoxEuMapViewer.setBoxColor("",  "");
= MyBoxEuMapViewer.popup("",  "");
MyBoxEuMapViewer - View
Loading...
MyBoxEuMapViewer - Sample Code
var oMyBoxEuMapViewerOptions = {
    "container" : "divMyBoxEuMapViewer",
    "resourceFolder" : "res-MyBoxEu",
    "location" : "Bochum",
    "callback" : onMyBoxEuMapViewerEvent
};

var oMyBoxEuMapViewer = new MyBoxEuMapViewer(oMyBoxEuMapViewerOptions);

function onMyBoxEuMapViewerEvent(oEvent) {

    switch (oEvent.id) {
    case oMyBoxEuMapViewer.EVENT_LOADED:
        console.log(oMyBoxEuMapViewer.toString() + " is ready");
        break;
    case oMyBoxEuMapViewer.EVENT_BOX_SELECTED:
        console.log(oMyBoxEuMapViewer.toString() + ": user has selected box " + oEvent.box);
        break;
    case oMyBoxEuMapViewer.EVENT_POPUP_CLOSED:
        console.log(oMyBoxEuMapViewer.toString() + ": user has closed popup");
        break;
    default:
        window.alert(oMyBoxEuMapViewer.toString() + ": unknown MyBoxEuMapViewer event id: " + oEvent.id);
        break;
    }
}