src/ui/status-bar/smart-status-bar.component.ts
| changeDetection | ChangeDetectionStrategy.Eager |
| selector | smart-status-bar |
| styleUrls | ./smart-status-bar.component.scss |
| templateUrl | ./smart-status-bar.component.html |
Properties |
|
Methods |
|
Inputs |
constructor(injector: Injector, statusBarRegistry: SmartStatusBarRegistryService)
|
|||||||||
|
Parameters :
|
| style |
Type : any
|
| 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 clearStatus |
clearStatus()
|
|
Clears the current status message.
Returns :
void
|
| Public getStatus |
getStatus()
|
|
Gets the current status message.
Returns :
string
The current status message. |
| Public handleLayoutChange | ||||||||
handleLayoutChange(newLayout: any)
|
||||||||
|
Handles layout changes for the status bar.
Parameters :
Returns :
void
|
| Public setStatus | ||||||||
setStatus(label: string)
|
||||||||
|
Sets the status message for the status bar.
Parameters :
Returns :
void
|
| Public notifyLoadingFinished | ||||||
notifyLoadingFinished(objectName: string)
|
||||||
|
Notifies the parent Smart Form that this form child has finished loading
Parameters :
Returns :
void
void |
| statusBarEl |
Type : unknown
|
Default value : viewChild('statusBar', { read: ElementRef })
|
| statusBarLabelEl |
Type : unknown
|
Default value : viewChild('statusBarLabel', { read: ElementRef })
|
| Public injector |
Type : Injector
|
<div #statusBar class="smart-status-bar" [style]="style()">
<p #statusBarLabel>
@if (label()) {
{{ label() }}
} @else {
<br>
}
</p>
</div>
./smart-status-bar.component.scss
:host {
display: block;
min-height: 0;
}
.smart-status-bar {
display: block;
margin: 0px;
height: 100%;
padding: 5px;
min-height: 0;
p {
min-height: fit-content;
height: fit-content;
margin: 0px;
white-space: nowrap;
overflow-x: hidden;
overflow-y: hidden;
text-overflow: ellipsis;
line-height: 1.4;
color: inherit;
font-size: inherit;
font-family: inherit;
}
}