I have a form which contains several fields, out of which the location is a tree view with filter. Whenever I am resetting the form, the entered filter value is not getting cleared. I haven't find any solutions from the publisher documents.
Anyone having a solution?
Import these items from ngx-treeview library to the component:
import { TreeviewComponent, TreeviewConfig, TreeviewItem } from 'ngx-treeview';
Add this Global Variable to Typescript Code of the Component
@ViewChild(TreeviewComponent, { static: false }) treeviewComponent: TreeviewComponent;
<ngx-treeview #treeviewComponent [config]="config" [items]="treeviewItems" (selectedChange)="onSelectedChange($event)">
On Clicking The Clear Button, It should clear Filter Input Field as well as All the Checked Checkboxes.