Posted 5 May 2020, 11:49 am EST
Hi,
I want to implement a column-picker UI on wijmo flexgrid using angular.
my requirement is need to show/hide the popup according to a button outside the flexgrid.
The following is the click function I used
in component.ts
showHideColumn(){
let ref=document.querySelector(".ext-btn"); let host = this.columnPicker.hostElement; if (!host.offsetHeight ) { showPopup(host, ref, false, true, false); this.columnPicker.focus(); } else { hidePopup(host, true, true); // this.flexTable.focus(); } }
In html
<button class=“ext-btn” mat-raised-button (click)=“showHideColumn()”>
Show/Hide Columns
But now when I click this button it always showing the column picker.not hiding on the button click.
How to do this?
Regards,
Teenu