<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>ActiveReportsJS Report Designer Customization Sample</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="/activereportsjs/demos/arjs/dist/ar-js-core.js"></script>
<script src="/activereportsjs/demos/arjs/dist/ar-js-designer.js"></script>
<script src="$DEMOROOT$/lib/purejs/license.js"></script>
<link
rel="stylesheet"
type="text/css"
href="/activereportsjs/demos/arjs/styles/ar-js-ui.css"
/>
<link
rel="stylesheet"
type="text/css"
href="/activereportsjs/demos/arjs/styles/ar-js-designer.css"
/>
<style>
#designer-host {
width: 100%;
height: 550px;
}
</style>
</head>
<body>
<div id="designer-host"></div>
<script>
const editorSettings = {
rulers: {
visible: false, // Hide rulers by default
},
gridSize: "0.1in", // Set default grid size
showGrid: true, // Show grid by default
snapToGrid: true, // Enable snap to grid by default
snapToGuides: true, // Enable snap to guides by default
};
const appBarSettings = {
visible: true, // Show the app bar
homeTab: {
visible: true, // Show the home tab
},
contextActionsTab: {
visible: false, // Hide the context actions tab
},
parametersTab: {
visible: false, // Hide the parameters tab
},
};
const toolBarSettings = {
visible: true, // Show the toolbar
};
const menuSettings = {
visible: true, // Show the main menu
toolBox: {
visible: false, // Hide the Tool Box
},
documentExplorer: {
visible: true, // Show the Document Explorer
},
groupEditor: {
visible: false, // Hide the Group Editor
},
layerEditor: {
visible: false, // Hide the Layer Editor
},
logo: {
visible: false, // Hide the logo
},
};
const dataTabSettings = {
dataTab: {
visible: false, // Hide the Data tab
},
};
const propertyGridSettings = {
propertiesTab: {
visible: true, // Show the Properties tab
},
mode: "Basic", // Set the Property Grid mode to "Advanced" or "Basic"
};
const statusBarSettings = {
visible: false, // Hide the status bar
};
const themeConfig = {
initialTheme: "ActiveReports",
themeSelector: {
isEnabled: true,
availableThemes: ["ActiveReports", "ActiveReportsDark"]
}
};
const designerConfig = {
// Adding and removing items is not allowed
lockLayout: true,
editor: editorSettings,
appBar: appBarSettings,
toolBar: toolBarSettings,
menu: menuSettings,
data: dataTabSettings,
propertyGrid: propertyGridSettings,
statusBar: statusBarSettings,
themeConfig : themeConfig
};
var designer = new MESCIUS.ActiveReportsJS.ReportDesigner.Designer(
"#designer-host",
designerConfig
);
designer.setReport({
id: "FrontStore.rdlx-json",
displayName: "Taxi Drive Report",
});
</script>
</body>
</html>