device-grid/columns/group.filtering-form-renderer.component.ts
templateUrl | ./group.filtering-form-renderer.component.html |
Properties |
|
Methods |
HostListeners |
constructor(context: FilteringFormRendererContext)
|
||||||
Parameters :
|
keydown.enter |
Arguments : '$event'
|
keydown.enter(event: KeyboardEvent)
|
keydown.escape |
Arguments : '$event'
|
keydown.escape(event: KeyboardEvent)
|
applyFilter |
applyFilter()
|
Returns :
void
|
ngAfterViewInit |
ngAfterViewInit()
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
onEnterKeyDown | ||||||
onEnterKeyDown(event: KeyboardEvent)
|
||||||
Decorators :
@HostListener('keydown.enter', ['$event'])
|
||||||
Parameters :
Returns :
void
|
onEscapeKeyDown | ||||||
onEscapeKeyDown(event: KeyboardEvent)
|
||||||
Decorators :
@HostListener('keydown.escape', ['$event'])
|
||||||
Parameters :
Returns :
void
|
resetFilter |
resetFilter()
|
Returns :
void
|
selectionChanged | ||||
selectionChanged(nodes)
|
||||
Parameters :
Returns :
void
|
assetSelector |
Type : ElementRef
|
Decorators :
@ViewChild('assetSelector', {static: false, read: ElementRef})
|
Public context |
Type : FilteringFormRendererContext
|
model |
Type : any
|
preselected |
Type : string[]
|
Default value : []
|
<c8y-asset-selector
#assetSelector
[config]="{
groupsOnly: true,
multi: true,
groupsSelectable: true,
search: true
}"
[selected]="preselected"
(onSelected)="selectionChanged($event)"
></c8y-asset-selector>
<div class="data-grid__dropdown__footer d-flex separator-top">
<button
class="btn btn-default btn-sm m-r-8 flex-grow"
(click)="resetFilter()"
title="{{ 'Reset' | translate }}"
translate
>
Reset
</button>
<button
class="btn btn-primary btn-sm flex-grow"
(click)="applyFilter()"
title="{{ 'Apply' | translate }}"
translate
>
Apply
</button>
</div>