device-grid/columns/group.filtering-form-renderer.component.ts
OnInit
templateUrl | ./group.filtering-form-renderer.component.html |
Properties |
Methods |
HostListeners |
constructor(context: FilteringFormRendererContext)
|
||||||
Parameters :
|
keydown.escape |
Arguments : '$event'
|
keydown.escape(event: KeyboardEvent)
|
keyup.enter |
Arguments : '$event'
|
keyup.enter(event: KeyboardEvent)
|
applyFilter |
applyFilter()
|
Returns :
void
|
ngAfterViewInit |
ngAfterViewInit()
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
onEnterKeyUp | ||||||
onEnterKeyUp(event: KeyboardEvent)
|
||||||
Decorators :
@HostListener('keyup.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
|
initialSelection |
Type : string[]
|
Default value : []
|
isApplyDisabled |
Default value : true
|
model |
Type : any
|
preselected |
Type : string[]
|
Default value : []
|
<c8y-asset-selector
class="bg-component"
#assetSelector
[config]="{
groupsOnly: true,
multi: true,
groupsSelectable: true,
search: true,
label: ''
}"
[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"
title="{{ 'Reset' | translate }}"
(click)="resetFilter()"
translate
>
Reset
</button>
<button
class="btn btn-primary btn-sm flex-grow"
title="{{ 'Apply' | translate }}"
(click)="applyFilter()"
[disabled]="isApplyDisabled"
translate
>
Apply
</button>
</div>