src/smart-developer-tools/session-info/session-info.component.ts
| changeDetection | ChangeDetectionStrategy.Eager |
| selector | session-info |
| styleUrls | ./session-info.component.css |
| templateUrl | ./session-info.component.html |
Properties |
|
Methods |
|
Inputs |
constructor(serviceAdapter: SmartServiceAdapter, smartHttp: SmartHttpService, injector: Injector)
|
||||||||||||
|
Parameters :
|
| 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 |
| Public handleLayoutChange | ||||||
handleLayoutChange(newLayout: any)
|
||||||
|
Parameters :
Returns :
void
|
| Public notifyLoadingFinished | ||||||
notifyLoadingFinished(objectName: string)
|
||||||
|
Notifies the parent Smart Form that this form child has finished loading
Parameters :
Returns :
void
void |
| height |
Type : number
|
| Public serviceAdapter |
Type : SmartServiceAdapter
|
| sessionInfo |
Type : unknown
|
Default value : signal<any[]>([])
|
| 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 : session-info.component.html
Purpose : Template for session info.
Author(s) : Oana Sucigan
Created : Nov 27, 2020
--------------------------------------------------------------------------
-->
@let sessionInfo$ = sessionInfo();
<div class="session-info-container">
@if (sessionInfo$) {
<kendo-panelbar [height]="height">
@for (item of sessionInfo$; track item.Label) {
<kendo-panelbar-item [title]="item.Label">
<ng-template kendoPanelBarContent>
<kendo-grid [data]="item.Entries" [scrollable]="'none'" [resizable]="true">
<kendo-grid-column [width]="40">
<ng-template kendoGridCellTemplate let-dataItem>
<img [src]="serviceAdapter.imageURI + '/' + dataItem.Image"/>
</ng-template>
</kendo-grid-column>
<kendo-grid-column [title]="item.KeyLabel" field="Key">
<ng-template kendoGridHeaderTemplate>
<p style="font-weight: bold">{{item.KeyLabel}}</p>
</ng-template>
<ng-template kendoGridCellTemplate let-dataItem>
<span class="session-info-text">{{dataItem.Key}}</span>
</ng-template>
</kendo-grid-column>
<kendo-grid-column [title]="item.DescriptionLabel">
<ng-template kendoGridHeaderTemplate>
<p style="font-weight: bold">{{item.DescriptionLabel}}</p>
</ng-template>
<ng-template kendoGridCellTemplate let-dataItem>
<span class="session-info-text">{{dataItem.Description}}</span>
</ng-template>
</kendo-grid-column>
</kendo-grid>
</ng-template>
</kendo-panelbar-item>
}
</kendo-panelbar>
}
</div>
./session-info.component.css
/**********************************************************************
* 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 : session-info.component.css
Purpose : Styles for session info.
Author(s) : Radu Nicoara
Created : Sep 26, 2018
----------------------------------------------------------------------*/
.session-info-text {
overflow-wrap: break-word;
}
.session-info-container {
overflow-y: auto;
height: 100%;
}