File

src/ui/grid/smart-grid-combo-filter/smart-grid-combo-filter.component.ts

Extends

BaseFilterCellComponent

Implements

AfterViewInit OnChanges

Metadata

Index

Properties
Methods
Inputs
Accessors

Constructor

constructor(filterService: FilterService, smartServiceAdapter: SmartServiceAdapter)
Parameters :
Name Type Optional
filterService FilterService No
smartServiceAdapter SmartServiceAdapter No

Inputs

field
Type : string
filter
Type : CompositeFilterDescriptor
valueList
Type : Record<string | unknown>

Methods

onValueChange
onValueChange(value: any)

Handles value changes of the Smart Combo Editor

Parameters :
Name Type Optional
value any No
Returns : void

Properties

comboEditor
Type : SmartComboEditorComponent
Decorators :
@ViewChild(SmartComboEditorComponent)

Accessors

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);
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""