Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SVY-18890 upgrade to angular 17.x and also change the builder to the
"application" (esbuild) builder fix the default accordion to use the new directives instead of tags. The one that doesn't work yet is the preventDefault() of the tabchange and only change the tab on a server call that says ok. (because the tab is now always switched by the ngbAccordionButton directive) see: ng-bootstrap/ng-bootstrap#4674
- Loading branch information
1 parent
7d49d77
commit 6b9d2b3
Showing
2 changed files
with
14 additions
and
19 deletions.
There are no files selected for viewing
20 changes: 10 additions & 10 deletions
20
com.servoy.eclipse.ngclient.ui/node/projects/servoydefault/src/lib/accordion/accordion.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<ngb-accordion [activeIds]="getSelectedTabId()" (panelChange)="onTabChange($event)" class="svy-accordion" [id]="servoyApi.getMarkupId()" [sabloTabseq]="tabSeq" [sabloTabseqConfig]="{container: true, reservedGap: 50}"> | ||
<ngb-panel *ngFor="let tab of tabs;let i = index" [disabled]="tab.disabled || !tab.containsFormId" [id]="tab._id"> | ||
<ng-template ngbPanelHeader> | ||
<button ngbPanelToggle class="accordion-button" (click)="tabClicked(tab, i , $event)"> | ||
<div ngbAccordion [closeOthers]="true" #element class="svy-accordion" [id]="servoyApi.getMarkupId()" [sabloTabseq]="tabSeq" [sabloTabseqConfig]="{container: true, reservedGap: 50}"> | ||
<div ngbAccordionItem *ngFor="let tab of tabs;let i = index" [disabled]="tab.disabled || !tab.containsFormId" [id]="tab._id" [collapsed]="getSelectedTabId() !== tab._id"> | ||
<div ngbAccordionHeader> | ||
<button ngbAccordionButton class="accordion-button" (click)="tabClicked(tab, i , $event)"> | ||
<span [innerHTML]='tab?.text'></span> | ||
</button> | ||
</ng-template> | ||
<ng-template ngbPanelContent> | ||
<div #element style="position: relative;overflow: auto;top: 0px;bottom: 0px;left: 0px;right: 0px;" [style.height.px]="panelHeight"> | ||
</div> | ||
<div ngbAccordionCollapse> | ||
<div ngbAccordionBody style="position: relative;overflow: auto;top: 0px;bottom: 0px;left: 0px;right: 0px;" [style.height.px]="panelHeight"> | ||
<ng-template [ngTemplateOutlet]="templateRef" [ngTemplateOutletContext]="{name:getForm(tab)}"></ng-template> | ||
</div> | ||
</ng-template> | ||
</ngb-panel> | ||
</ngb-accordion> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters