src/ui/grid/smart-grid-combo-filter/smart-grid-combo-filter.component.ts
BaseFilterCellComponent
| changeDetection | ChangeDetectionStrategy.Eager |
| selector | smart-grid-combo-filter |
| styleUrls | ./smart-grid-combo-filter.component.css |
| templateUrl | ./smart-grid-combo-filter.component.html |
Properties |
Methods |
Inputs |
Accessors |
constructor(filterService: FilterService, smartServiceAdapter: SmartServiceAdapter)
|
|||||||||
|
Parameters :
|
| field |
Type : string
|
| filter |
Type : CompositeFilterDescriptor
|
| valueList |
Type : Record<string | unknown>
|
| onValueChange | ||||||
onValueChange(value: any)
|
||||||
|
Handles value changes of the Smart Combo Editor
Parameters :
Returns :
void
|
| comboEditor |
Type : SmartComboEditorComponent
|
Decorators :
@ViewChild(SmartComboEditorComponent)
|
| selectedValue |
getselectedValue()
|
|
The current filter value
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 : smart-grid-combo-filter.component.html
Purpose : Template for Smart Grid Combo Filter.
Author(s) : Radu Nicoara
Created : Sep 23, 2020
--------------------------------------------------------------------------
-->
<smart-combo-editor
[smartModel]="selectedValue"
(smartModelChange)="onValueChange($event)"
>
</smart-combo-editor>
@if (selectedValue) {
<button
(click)="onValueChange(null)"
kendoButton
fillMode="solid"
themeColor="base"
class="text-dark"
icon="filter-clear"
title="Clear"
></button>
}
./smart-grid-combo-filter.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 : smart-grid-combo-filter.component.css
Purpose : Styles for Smart Grid Combo Filter.
Author(s) : Radu Nicoara
Created : Sep 23, 2020
----------------------------------------------------------------------*/
smart-combo-editor {
width: calc(100% - var(--kendo-spacing-8, 2.125rem));
}
::ng-deep smart-combo-editor .k-combobox {
width: 100% !important;
}
.k-button {
float: right;
margin-left: var(--kendo-spacing-1, 0.25rem);
}