File

src/ui/form/modal-form-outlet/modal-form-outlet.component.ts

Implements

OnInit AfterViewInit

Metadata

Index

Methods
Inputs

Constructor

constructor(windowHelper: FloatingWindowHelperService, formInstanceService: SmartFormInstanceService, elementRef: ElementRef, renderer: Renderer2)
Parameters :
Name Type Optional
windowHelper FloatingWindowHelperService No
formInstanceService SmartFormInstanceService No
elementRef ElementRef No
renderer Renderer2 No

Inputs

breadcrumbNavigationEnabled
Type : boolean
buttons
Type : SmartFloatingWindowFormCloseReason[]
router-outlet-name
Type : string
smart-form-route
Type : string
windowRef
Type : WindowRef

Methods

close
close(reason: SmartFloatingWindowFormCloseReason)

Closes the window.

Parameters :
Name Type Optional
reason SmartFloatingWindowFormCloseReason No
Returns : void
getFormInstance
getFormInstance()

Returns the Smart Form instance currently rendered in this modal outlet.

Returns : any
<!--
**************************************************************************
* 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        : modal-form-outlet.component.html
    Purpose     : Template for modal form outlet.
    Author(s)   : Radu Nicoara
    Created     : Oct 22, 2020
--------------------------------------------------------------------------
-->
@if (breadcrumbNavigationEnabled) {
<smart-breadcrumb-navigation
	[routerOutlet]="routerOutletName"
></smart-breadcrumb-navigation>
}
<router-outlet [name]="routerOutletName"></router-outlet>
<!-- <smart-router-outlet [name]="routerOutletName"></smart-router-outlet> -->

@for (btn of buttons; track btn) {
<button
	kendoButton
	class="floating-window-close-btn"
	(click)="close(btn)"
	[themeColor]="btn.primary ? 'primary' : 'base'"
>
	{{ btn.buttonText }}
</button>
}

modal-form-outlet.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        : modal-form-outlet.component.scss
    Purpose     : Styles for modal form outlet.
    Author(s)   : Radu Nicoara
    Created     : Sep 11, 2025
  ----------------------------------------------------------------------*/

.floating-window-close-btn {
    margin-right: var(--kendo-spacing-2, 0.5rem);
}
.floating-window-close-btn:last-of-type {
    margin-right: 0px;
}
:host {
    height: 100% !important;
    width: 100% !important;
    display: block !important;
    & > div {
        height: 100% !important;
        width: 100% !important;
        display: block !important;
        & > div.k-ripple-container {
            height: 100% !important;
            width: 100% !important;
            display: block !important;
        }
    }
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""