src/ui/logical-combo/smart-logical-combo.component.ts
| changeDetection | ChangeDetectionStrategy.Eager |
| selector | smart-logical-combo |
| styleUrls | ./smart-logical-combo.component.scss |
| templateUrl | ./smart-logical-combo.component.html |
Properties |
Methods |
Inputs |
Outputs |
Accessors |
constructor(elementRef: ElementRef, zone: NgZone)
|
|||||||||
|
Parameters :
|
| 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 |
| blur |
Type : EventEmitter<void>
|
| focus |
Type : EventEmitter<void>
|
| smartModelChange |
Type : EventEmitter<boolean>
|
| onEditorButtonClicked |
Type : EditorButton
|
| callNativeMethod | |||||||||
callNativeMethod(methodName: string, args: any[])
|
|||||||||
|
Parameters :
Returns :
any
|
| clear |
clear()
|
|
Returns :
void
|
| getNativeProperty | ||||||
getNativeProperty(propertyName: string)
|
||||||
|
Parameters :
Returns :
any
|
| Public onSelectionChanged | ||||||
onSelectionChanged(event: any)
|
||||||
|
Parameters :
Returns :
void
|
| setNativeProperty |
setNativeProperty(propertyName: string, value: any)
|
|
Returns :
void
|
| visible |
Type : unknown
|
Default value : true
|
| comboInstance | ||||||
setcomboInstance(combo: ComboBoxComponent)
|
||||||
|
Set the combo instance
Parameters :
Returns :
void
|
| disabled |
getdisabled()
|
|
Returns :
boolean
|
| mandatory |
getmandatory()
|
|
Returns :
boolean
|
| dropdownItems |
getdropdownItems()
|
|
Get the dropdown items
Returns :
LogicalComboItem[]
|
| selectedItem |
getselectedItem()
|
|
Get the selected item
Returns :
LogicalComboItem | null
|
| 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;
}
}