Customize context menu
Embedding Flexmonster
by ilaria_nunziante
HTML
<link rel="stylesheet" href="https://s3.amazonaws.com/flexmonster/2.3/demo.css">
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div id="pivot-container"></div>
JavaScript
var pivot = new Flexmonster({
container: "pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
width: "100%",
height: 430,
toolbar: true,
customizeContextMenu: customizeFlexmonsterContextMenu,
report: {
"dataSource": {
"type": "json",
"data": [
{
"Bucket": {
"type": "string",
"caption": "Bucket"
},
"CODE_4": {
"type": "string",
"caption": "Area"
},
"DG_1_4": {
"type": "number",
"caption": "Forecast-Tons"
},
"ID_4": {
"type": "property",
"hierarchy": "CODE_4",
"caption": null
},
"Bucket_Id": {
"type": "property",
"hierarchy": "Bucket",
"caption": "Bucket_Id"
},
"Bucket_Date": {
"type": "property",
"hierarchy": "Bucket",
"caption": "Bucket_Date"
},
"DeleteRow": {
"type": "delete",
"caption": "DeleteRow"
},
"Kupla": {
"type": "hidden",
"caption": "Kupla"
},
"ForcingId": {
"type": "number",
"caption": "ForcingId"
}
},
{
"Bucket": "I/2020",
"Bucket_Id": 1207,
"Bucket_Date": 43831,
"Kupla": 11006,
"ForcingId": null,
"DeleteRow": false,
"CODE_4": "Area7",
"ID_4": 11,
"DG_1_4": 4.199999999999999
},
{
"Bucket": "I/2020",
"Bucket_Id": 1207,
"Bucket_Date": 43831,
"Kupla": 11006,
"ForcingId": null,
"DeleteRow": false,
"CODE_4": "Area8",
"ID_4": 11,
"DG_1_4": 4.199999999999999
},
{
"Bucket": "I/2020",
"Bucket_Id": 1207,
"Bucket_Date": 43831,
"Kupla": 11006,
"ForcingId": null,
"DeleteRow": false,
"CODE_4": "Area9",
"ID_4": 11,
"DG_1_4": 4.199999999999999
},
{
"Bucket": "I/2020",
"Bucket_Id": 1207,
"Bucket_Date": 43831,
"Kupla": 11006,
"ForcingId": null,
"DeleteRow": false,
"CODE_4": "Area10",
"ID_4": 11,
"DG_1_4": 4.199999999999999
}
]
},
"slice": {
"rows": [
{
"uniqueName":...