File

src/smart-dynamic-launcher/launcher-modal/launcher-modal.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods
Inputs

Inputs

lookupDialogQueryString
Type : string
lookupQueryString
Type : string
popupContainer
Type : ViewContainerRef
selectedObjectMaster
Type : string

Methods

getFormParameter
getFormParameter()

Gets the parsed form parameter.

Returns : unknown

The parsed JSON object or undefined.

onFormParameterChange
onFormParameterChange(formParameterText: string)

Handles changes to the form parameter text.

Parameters :
Name Type Optional Description
formParameterText string No
  • The form parameter text.
Returns : void
onObjectMasterChange
onObjectMasterChange(objectMaster: string)

Handles changes to the selected object master.

Parameters :
Name Type Optional Description
objectMaster string No
  • The selected object master value.
Returns : void
updateOkButtonState
updateOkButtonState()

Updates the OK button disabled state.

Returns : void
validateFormParameter
validateFormParameter()

Validates the form parameter text.

Returns : boolean

True when the form parameter is empty or a JSON object.

Properties

Public formParameterError
Type : string
Default value : ''
Public formParameterText
Type : string
Default value : ''
<!--
**************************************************************************
* 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        : launcher-modal.component.html
    Purpose     : Template for launcher modal.
    Author(s)   : Oana Sucigan
    Created     : Jul 18, 2022
--------------------------------------------------------------------------
-->
<div class="container-fluid dynamic-launcher-modal">
    <div class="d-flex flex-row px-2 py-2">
        <div class="col-12 pb-2">
            <label class="k-label">Form Name:</label>
            <smart-lookup
                [name]="'DynamicLauncher.SelectedObjectMaster'"
                smart-business-entity-name="Consultingwerk.SmartFramework.Repository.Object.ObjectMasterBusinessEntity"
                smart-entity-table="eSmartObjectMaster"
                [smart-lookup-query-string]="lookupQueryString"
                [smart-lookup-dialog-query-string]="lookupDialogQueryString"
                [smart-grid-layout]="lookupGridLayout"
                smart-lookup-key-value-field="ObjectName"
                smart-lookup-key-field="ObjectName"
                smart-lookup-header="Lookup Object Master"
                smart-lookup-dialog-options="width=700px;height=800px;padding-top=20px"
                [(smartModel)]="selectedObjectMaster"
                (keyValueModelChange)="onObjectMasterChange($event)">
            </smart-lookup>
        </div>
    </div>
    <div class="d-flex flex-row px-2 pb-2">
        <div class="col-12 pb-2">
            <label class="k-label">Form Parameter:</label>
            <kendo-textarea
                class="dynamic-launcher-form-parameter"
                [class.k-invalid]="!!formParameterError"
                name="dynamicLauncherFormParameter"
                [rows]="4"
                resizable="vertical"
                [inputAttributes]="{
                    'aria-invalid': formParameterError ? 'true' : 'false'
                }"
                [ngModel]="formParameterText"
                (ngModelChange)="onFormParameterChange($event)"
            ></kendo-textarea>
            <div
                *ngIf="formParameterError"
                class="dynamic-launcher-form-parameter-error"
            >
                {{ formParameterError }}
            </div>
        </div>
    </div>
</div>

./launcher-modal.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        : launcher-modal.component.css
    Purpose     : Styles for launcher modal.
    Author(s)   : Radu Nicoara
    Created     : Oct 23, 2020
  ----------------------------------------------------------------------*/

::ng-deep .dynamic-launcher-dialog .k-dialog-actions .k-dialog-close {
    display: none !important;
}

.control-label.light {
    color: black !important;
}

.control-label.dark {
    color: white !important;
}

.dynamic-launcher-modal {
    width: 420px;
}

.dynamic-launcher-form-parameter {
    display: block;
    width: 100%;
}

.dynamic-launcher-form-parameter-error {
    color: #a4251a;
    font-size: 12px;
    margin-top: 4px;
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""