ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

ngx-boostrap tabDirective (remove event)

Open DebolaA opened this issue 7 years ago • 1 comments

I want the tabs to be removable, but want user confirmation before closing tab. Is there a way to prevent tab closing after the tab close button is clicked?

<tabset #resourceTabs> <tab *ngFor="let tabz of tabs" [heading]="tabz.title" [active]="tabz.active" (selectTab)="onSelectTab($event, tabz)" (deselect)="tabz.active = false" [disabled]="tabz.disabled" [removable]="tabz.removable" (removed)="closeTabHandler(tabz, closeTabConfirmation, $event)" [customClass]="tabz.customClass"> <edit-resources [resource]="( selectedResource)" (onTabContentChanged)="onTabContentChanged($event)">

DebolaA avatar Aug 30 '19 09:08 DebolaA

Closed as a duplicate of https://github.com/valor-software/ngx-bootstrap/issues/786

ludmilanesvitiy avatar Sep 16 '19 07:09 ludmilanesvitiy