File

src/ui/status-bar/smart-status-bar.component.ts

Extends

AbstractFormChild

Implements

AfterViewInit OnDestroy

Metadata

Index

Properties
Methods
Inputs

Constructor

constructor(injector: Injector, statusBarRegistry: SmartStatusBarRegistryService)
Parameters :
Name Type Optional
injector Injector No
statusBarRegistry SmartStatusBarRegistryService No

Inputs

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

Methods

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 :
Name Type Optional Description
newLayout any No
  • The new layout configuration.
Returns : void
Public setStatus
setStatus(label: string)

Sets the status message for the status bar.

Parameters :
Name Type Optional Description
label string No
  • The status message to display.
Returns : void
Public notifyLoadingFinished
notifyLoadingFinished(objectName: string)

Notifies the parent Smart Form that this form child has finished loading

Parameters :
Name Type Optional
objectName string No
Returns : void

void

Properties

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;
    }
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""