ngx-bootstrap
ngx-bootstrap copied to clipboard
ngx-boostrap tabDirective (remove event)
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)">
Closed as a duplicate of https://github.com/valor-software/ngx-bootstrap/issues/786