File

src/ui/grid/smart-grid-detail.component.ts

Extends

AbstractDataSourcesContainerComponent

Implements

AfterViewInit

Metadata

Index

Properties
Methods
Inputs
Outputs
Accessors

Constructor

constructor(smartConfig: SmartConfig, changeDetector: ChangeDetectorRef, injector: Injector, windowHelperService: FloatingWindowHelperService)
Parameters :
Name Type Optional
smartConfig SmartConfig No
changeDetector ChangeDetectorRef No
injector Injector No
windowHelperService FloatingWindowHelperService No

Inputs

dataItem
Type : any
formConfiguration
Type : SmartFormConfiguration

Outputs

dataSourcesContainerLoaded$
Type : ReplaySubject<void>

Methods

Public getColumnCssClasses
getColumnCssClasses()

Gets column CSS classes for the layout container

Returns : string
Public getContainerCssClasses
getContainerCssClasses()

Gets container CSS classes for the layout container

Returns : string
getOwnFunction
getOwnFunction(functionName: string)
Parameters :
Name Type Optional
functionName string No
Returns : any

Properties

columnWidthCssClass
Type : string
containerSize
Type : WindowSize
currentBrowserTitleTemplate
Type : string
flexDirection
Type : string
formSize
Type : string
screenService
Type : SmartScreenService
Public windowHelperService
Type : FloatingWindowHelperService
Decorators :
@Optional()

Accessors

formIconUrl
getformIconUrl()

Returns the form icon URL.

Returns : string
setformIconUrl(value: string)

Sets the form icon URL.

Parameters :
Name Type Optional Description
value string No
  • The form icon URL.
Returns : void
formTitle
getformTitle()

Returns the form title.

Returns : string
setformTitle(value: string)

Sets the form title.

Parameters :
Name Type Optional Description
value string No
  • The form title.
Returns : void
layoutFormTitle
getlayoutFormTitle()

Returns the layout form title.

Returns : string
setlayoutFormTitle(value: string)

Sets the layout form title.

Parameters :
Name Type Optional Description
value string No
  • The layout form title.
Returns : void
formRepositoryName
getformRepositoryName()

Returns the form repository name.

Returns : string
setformRepositoryName(value: string)

Sets the form repository name.

Parameters :
Name Type Optional Description
value string No
  • The form repository name.
Returns : void
fallbackTitle
getfallbackTitle()

Returns the fallback title.

Returns : string
setfallbackTitle(value: string)

Sets the fallback title.

Parameters :
Name Type Optional Description
value string No
  • The fallback title.
Returns : void
formHeight
getformHeight()

Returns the form height.

Returns : number
setformHeight(value: number)

Sets the form height.

Parameters :
Name Type Optional Description
value number No
  • The form height.
Returns : void
isChildActive
getisChildActive()

Returns the is child active flag.

Returns : boolean
setisChildActive(value: boolean)

Sets the is child active flag.

Parameters :
Name Type Optional Description
value boolean No
  • Whether a child route is active.
Returns : void
windowState
getwindowState()

Returns the window state.

Returns : string
setwindowState(value: string)

Sets the window state.

Parameters :
Name Type Optional Description
value string No
  • The window state.
Returns : void
isModal
getisModal()

Returns whether the grid detail is modal. Grid details are never modal.

Returns : boolean
enableRippleEffect
getenableRippleEffect()
Returns : boolean
containerClassStr
getcontainerClassStr()

Container classes binding used by shared Smart Form template

Returns : string
columnClassStr
getcolumnClassStr()

Column classes binding used by shared Smart Form template

Returns : string
formConfiguration
getformConfiguration()

Returns the form configuration.

setformConfiguration(cfg: SmartFormConfiguration)
Parameters :
Name Type Optional
cfg SmartFormConfiguration No
Returns : void
<!--
**************************************************************************
* 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        : smart-form.component.html
    Purpose     : Template for Smart Form.
    Author(s)   : Radu Nicoara
    Created     : Dec 22, 2017
--------------------------------------------------------------------------
-->
<div class="smart-form-root">
        <div #container>
            @if(!!_formConfigurationSignal()) {
                <div 
                    #root
                    kendoRippleContainer
                    [disabled]="!_enableRippleEffectSignal()"
                    [ngClass]="_formConfigurationSignal().settings?.classList || ''">
                    <div #dataSourcesContainer></div>
                    
                    @if (!_isChildActiveSignal()) {
                        <smart-layout-container
                            #layoutContainer
                            class="p-2"
                            [layout]="_formConfigurationSignal()"
                            [stretchMode]="_formConfigurationSignal().settings?.stretchMode === true"
                            [height]="_formHeightSignal()"
                            [containerClass]="_containerClassStrSignal()"
                            [columnClass]="_columnClassStrSignal()">
                        </smart-layout-container>
                    }
                    <router-outlet></router-outlet>   
                </div>   
            }
        </div>

        <!-- FAB Action Buttons -->
        @if (visibleActionButtons().length > 0) {
            <div class="smart-form-fab-container">
                @for (button of visibleActionButtons(); track $index) {
                    <smart-fab
                        [smart-fab-icon]="button.icon"
                        [smart-fab-svg-icon]="button.svgIcon"
                        [smart-fab-text]="button.text"
                        [smart-fab-actions]="button.actions"
                        [smart-fab-position-mode]="'absolute'"
                        [smart-fab-align]="{ vertical: 'bottom', horizontal: 'end' }"
                        [smart-fab-offset]="{ x: '0px', y: ($index * -72) + 'px' }">
                    </smart-fab>
                }
            </div>
        }
    </div>

    <ng-template #floatingWindowTitleBar let-win>
        <div #floatingWindowTitle class="k-window-title">
            @if(_formIconUrlSignal() && _iconTypeSignal() === 'image') {
                <img class="form-window-icon" [src]="_formIconUrlSignal()">
            }
            @if(_formIconUrlSignal() && _iconTypeSignal() === 'icon') {
                <i [class]="'form-window-icon ' + _formIconUrlSignal()"></i>
            }

            <span style="margin-left: inherit">
                {{_layoutFormTitleSignal() || _formTitleSignal() || _fallbackTitleSignal() || _formRepositoryNameSignal()}}
            </span>
        </div>
        
        @if(_windowStateSignal() !== 'minimized' && !isModal) {
            <button
                (click)="setWindowState('minimized')"
                kendoButton
                iconClass="fa-regular fa-window-minimize"
                style="display: inline-flex"
                title="Minimize"
                [fillMode]="'flat'"
            >
            </button>
        }
        @if((!_windowStateSignal() || _windowStateSignal() === 'default') && !isModal) {
            <button
                (click)="setWindowState('maximized')"
                kendoButton
                iconClass="fa-regular fa-window-maximize"
                style="display: inline-flex"
                title="Maximize"
                [fillMode]="'flat'"
            >
            </button>
        }
        @if(_windowStateSignal() === 'maximized' || _windowStateSignal() === 'minimized') {
            <button
                (click)="setWindowState('default')"
                kendoButton
                iconClass="fa-regular fa-window-restore"
                style="display: inline-flex"
                title="Restore"
                [fillMode]="'flat'"
            >
            </button>
        }
        <button
            (click)="closeWindow()"
            kendoButton
            iconClass="fa-solid fa-xmark"
            style="display: inline-flex"
            title="Close" 
            [fillMode]="'flat'"
        >
        </button>
    </ng-template>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""