Designer Component Customization

These samples show how to customize the ActiveReportsJS Designer component with Angular, React, Vue, and pure JavaScript applications. For more details, please visit theCustomization page. To view the code, scroll down the page.

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>ActiveReportsJS 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/resource/themes/orange-ui.css" /> <link rel="stylesheet" type="text/css" href="/activereportsjs/demos/resource/themes/orange-designer.css" /> <style> #designer-host { width: 100%; height: 550px; } </style> </head> <body> <div id="designer-host"></div> <script> var 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 }; var 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 }, }; var toolBarSettings = { visible: true, // Show the toolbar }; var 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 }, }; var dataTabSettings = { dataTab: { visible: false, // Hide the Data tab }, }; var 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 }; var designerConfig = { // Adding and removing items is not allowed lockLayout: true, editor: editorSettings, appBar: appBarSettings, toolBar: toolBarSettings, menu: menuSettings, data: dataTabSettings, propertyGrid: propertyGridSettings, statusBar: statusBarSettings, }; var designer = new GC.ActiveReports.ReportDesigner.Designer( "#designer-host", designerConfig ); designer.setReport({ id: "FrontStore.rdlx-json", displayName: "Taxi Drive Report", }); </script> </body> </html>