디지이너 컴포넌트 사용자 정의

이 샘플은 Angular, React, Vue 및 순수 JavaScript 애플리케이션을 사용하여 ActiveReportsJS Designer 구성 요소를 사용자 정의하는 방법을 보여줍니다. 자세한 내용은 사용자 정의 페이지를 참조하세요. 코드를 보려면 페이지를 아래로 스크롤하세요.

<!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>