File

src/ui/logical-combo/smart-logical-combo.component.ts

Extends

AbstractSmartComponent

Implements

OnInit DoCheck OnChanges

Metadata

Index

Properties
Methods
Inputs
Outputs
Accessors

Constructor

constructor(elementRef: ElementRef, zone: NgZone)
Parameters :
Name Type Optional
elementRef ElementRef No
zone NgZone No

Inputs

disabled
Type : boolean
format
Type : string
mandatory
Type : boolean
selected
Type : any
smartModel
Type : any
editorButtons
Type : EditorButton[]
Default value : []
smart-instance-name
Type : string

The instance name of the component

smart-object-name
Type : string

The object name of the component

Outputs

blur
Type : EventEmitter<void>
focus
Type : EventEmitter<void>
smartModelChange
Type : EventEmitter<boolean>
onEditorButtonClicked
Type : EditorButton

Methods

callNativeMethod
callNativeMethod(methodName: string, args: any[])
Parameters :
Name Type Optional
methodName string No
args any[] No
Returns : any
clear
clear()
Returns : void
getNativeProperty
getNativeProperty(propertyName: string)
Parameters :
Name Type Optional
propertyName string No
Returns : any
Public onSelectionChanged
onSelectionChanged(event: any)
Parameters :
Name Type Optional
event any No
Returns : void
setNativeProperty
setNativeProperty(propertyName: string, value: any)
Parameters :
Name Type Optional
propertyName string No
value any No
Returns : void

Properties

visible
Type : unknown
Default value : true

Accessors

comboInstance
setcomboInstance(combo: ComboBoxComponent)

Set the combo instance

Parameters :
Name Type Optional
combo ComboBoxComponent No
Returns : void
disabled
getdisabled()
Returns : boolean
mandatory
getmandatory()
Returns : boolean
dropdownItems
getdropdownItems()

Get the dropdown items

Returns : LogicalComboItem[]
selectedItem
getselectedItem()

Get the selected item

ngModel
getngModel()

Get the ngModel

Returns : boolean | null
comboboxComponent
getcomboboxComponent()
Returns : ComboBoxComponent
<!--
**************************************************************************
* 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-logical-combo.component.html
    Purpose     : Template for Smart Logical Combo.
    Author(s)   : Oana Sucigan
    Created     : Apr 14, 2020
--------------------------------------------------------------------------
-->
<div class="logical-combo-wrapper">
    <kendo-dropdownlist
        (blur)="blur.emit()"
        (focus)="focus.emit()"
        #logicalcombo
        [data]="dropdownItems"
        [valuePrimitive]="false"
        textField="display"
        [ngModel]="selectedItem"
        valueField="value"
        [popupSettings]="{ appendTo: 'component' }"
        (selectionChange)="onSelectionChanged($event)"
        [disabled]="disabled">
    </kendo-dropdownlist>
    @for (button of editorButtons(); track button.key) {
        <button
            kendoButton
            [iconClass]="button.icon"
            [disabled]="disabled"
            [smartEditorButton]="button"
            [standaloneEditorButton]="true"
            (editorButtonClicked)="onEditorButtonClicked.emit($event)">
            {{ button.label }}
        </button>
    }
</div>

./smart-logical-combo.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        : smart-logical-combo.component.css
    Purpose     : Styles for Smart Logical Combo.
    Author(s)   : Radu Nicoara
    Created     : Sep 26, 2018
  ----------------------------------------------------------------------*/

.logical-combo-wrapper {
  display: flex;
  flex-direction: row;
  gap: var(--kendo-spacing-1, 0.25rem);

  .k-dropdownlist {
    flex: 1;
  }
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""