This sample shows how to use the Blazor WebDesigner API to create a customized UI for ActiveReports WebDesigner in Blazor.
Note: To run this sample, you must have
C#
https://github.com/activereports/WebSamples18/tree/main/WebDesigner_Blazor_CustomThis sample utilizes the WebDesigner API to create a customized UI for the WebDesigner. Some of the customizations demonstrated in the sample are shown below. You can check the Index.razor page of the sample for complete implementation.
Copy Code
|
|
---|---|
_menuSettings = new MenuSettings() { Logo = new Logo() { Custom = new MenuIcon() { Type = "css", Class = "example-icon" } } }; |
Copy Code
|
|
---|---|
_appBarSettings = new AppBarSettings { AboutButton = new AboutButton() { Visible = false } }; |
Copy Code
|
|
---|---|
_documentsSettings = new DocumentsSettings() { FileView = new FileView() { Visible = false } }; |
Copy Code
|
|
---|---|
<div id="ar-web-designer" class="ar-web-designer"> <ReportDesigner @ref="_designer" LockLayout="true" </div> |
Copy Code
|
|
---|---|
_menuSettings = new MenuSettings() { ToolBox = new ToolBox() { Visible = false } }; |
Copy Code
|
|
---|---|
_appBarSettings = new AppBarSettings { ParametersTab = new ParametersTab() { Visible = false } }; |
Copy Code
|
|
---|---|
_dataSettings = new DataSettings() { DataTab = new DataTab() { Visible = false } }; |
Copy Code
|
|
---|---|
_statusBarSettings = new StatusBarSettings() { PropertiesModeButton = new PropertiesModeButton() { Visible = false } }; |
Copy Code
|
|
---|---|
_fonts = new object[] { new FontHeader() { Header = "Questionable Choice" }, new Font() { Label = "Pretty Font", Value = "Comic Sans MS" }, new FontHeader() { Header = "" }, "Arial", "Courier New", "Times New Roman" }; |
Copy Code
|
|
---|---|
_propertyGridSettings = new PropertyGridSettings() { Mode = Mode.Basic };
|