src/ui/report-viewer/report-viewer.component.ts
OnInit
AfterViewInit
OnChanges
OnDestroy
| changeDetection | ChangeDetectionStrategy.Eager |
| providers |
SmartReportService
|
| selector | smart-report-viewer |
| styleUrls | ./report-viewer.component.scss |
| templateUrl | ./report-viewer.component.html |
Properties |
|
Methods |
Inputs |
| smart-auto-load-report |
Type : boolean
|
Default value : true
|
| smart-data-source |
Type : string
|
| smart-report-data-request-method |
Type : "get" | "post"
|
Default value : 'get'
|
| smart-report-data-request-payload-fields |
Type : string
|
| smart-report-data-url |
Type : string
|
| smart-report-template-url |
Type : string
|
| ignoreFlexboxLayout |
Type : boolean
|
| smart-help-text |
Type : string | undefined
|
|
Sets the HelpText value for this form child. |
| smart-instance-name |
Type : string
|
|
The instance name of the component |
| smart-object-name |
Type : string
|
|
The object name of the component |
| getActiveReportsViewer |
getActiveReportsViewer()
|
|
Get the ActiveReports viewer
Returns :
Viewer
|
| handleLayoutChange | ||||||
handleLayoutChange(styling: any)
|
||||||
|
Parameters :
Returns :
void
|
| loadReport | ||||||||||||
loadReport(templateUrl: string, dataUrl: string)
|
||||||||||||
|
Load the report and open it in the report viewer
Parameters :
Returns :
void
|
| Public notifyLoadingFinished | ||||||
notifyLoadingFinished(objectName: string)
|
||||||
|
Notifies the parent Smart Form that this form child has finished loading
Parameters :
Returns :
void
void |
| Public smartDataSource |
Type : AbstractSmartDataSource
|
| Public injector |
Type : Injector
|
<!--
**************************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**************************************************************************
--------------------------------------------------------------------------
File : report-viewer.component.html
Purpose : Template for report viewer.
Author(s) : Radu Nicoara
Created : Aug 29, 2025
--------------------------------------------------------------------------
-->
<div #viewerHost class="smart-report-viewer-host w-100 h-100"></div>
./report-viewer.component.scss
/**********************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**********************************************************************/
/*------------------------------------------------------------------------
File : report-viewer.component.scss
Purpose : Styles for report viewer.
Author(s) : Radu Nicoara
Created : Apr 07, 2025
----------------------------------------------------------------------*/
:host {
display: block;
width: 100%;
height: 100%;
}
.smart-report-viewer-host {
display: block;
}