core/data-grid/column/base.filtering-form-renderer.component.ts
OnInit
selector | c8y-base-filtering-form-renderer |
templateUrl | ./base.filtering-form-renderer.component.html |
Properties |
Methods |
HostListeners |
constructor(context: FilteringFormRendererContext, jsonschema: C8yJSONSchema)
|
|||||||||
Parameters :
|
keydown.escape |
Arguments : '$event'
|
keydown.escape(event: KeyboardEvent)
|
keyup.enter |
Arguments : '$event'
|
keyup.enter(event: KeyboardEvent)
|
applyFilter |
applyFilter()
|
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
|
Public context |
Type : FilteringFormRendererContext
|
fields |
Type : FormlyFieldConfig[]
|
form |
Type : FormGroup
|
Public jsonschema |
Type : C8yJSONSchema
|
model |
options |
schema |
<formly-form
[form]="form"
[fields]="fields"
[model]="model"
></formly-form>
<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]="form.pristine || form.invalid"
translate
>
Apply
</button>
</div>