Layout
Set Layout
Constructor
<script>
const designerDiv = document.getElementById("designer");
const designer = AnkaReport.designer({
element: designerDiv,
layout: layout,
});
</script>
Function
<script>
const designerDiv = document.getElementById("designer");
const designer = AnkaReport.designer({
element: designerDiv,
});
designer.loadLayout(layout);
</script>
Get Layout
Constructor
<script>
const designerDiv = document.getElementById("designer");
const designer = AnkaReport.designer({
element: designerDiv,
layout: layout,
onSaveButtonClick: (layout) => {
console.log(layout);
},
});
</script>
Function
<script>
const designerDiv = document.getElementById("designer");
const designer = AnkaReport.designer({
element: designerDiv,
});
designer.menu.saveButton.addEventListener("click", () => {
const layout = designer.toJSON();
console.log(layout);
});
</script>