-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8227 from abpframework/feat/8184
feat: improve page component api for ease of use
- Loading branch information
Showing
3 changed files
with
36 additions
and
28 deletions.
There are no files selected for viewing
46 changes: 23 additions & 23 deletions
46
npm/ng-packs/packages/components/page/src/page.component.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,41 +1,41 @@ | ||
<div class="row entry-row"> | ||
<ng-container *ngIf="titleVisible"> | ||
<ng-container *ngIf="customTitle; else defaultTitleTemplate"> | ||
<ng-content select="abp-page-title-container"></ng-content> | ||
</ng-container> | ||
<ng-container *ngIf="customTitle; else defaultTitleTemplate"> | ||
<ng-content select="abp-page-title-container"></ng-content> | ||
</ng-container> | ||
|
||
<ng-container *ngIf="breadcrumbVisible"> | ||
<ng-container *ngIf="customBreadcrumb; else defaultBreadcrumbTemplate"> | ||
<ng-content select="abp-page-breadcrumb-container"></ng-content> | ||
</ng-container> | ||
<ng-container *ngIf="customBreadcrumb; else defaultBreadcrumbTemplate"> | ||
<ng-content select="abp-page-breadcrumb-container"></ng-content> | ||
</ng-container> | ||
|
||
<ng-container *ngIf="toolbarVisible"> | ||
<ng-container *ngIf="customToolbar; else defaultPageToolbarTemplate"> | ||
<ng-content select="abp-page-toolbar-container"></ng-content> | ||
</ng-container> | ||
<ng-container *ngIf="customToolbar; else defaultPageToolbarTemplate"> | ||
<ng-content select="abp-page-toolbar-container"></ng-content> | ||
</ng-container> | ||
</div> | ||
|
||
<ng-content></ng-content> | ||
|
||
<ng-template #defaultTitleTemplate> | ||
<div class="col-auto" *abpPagePart="pageParts.title"> | ||
<h1 class="content-header-title"> | ||
{{ title }} | ||
</h1> | ||
</div> | ||
<ng-container *ngIf="title"> | ||
<div class="col-auto" *abpPagePart="pageParts.title"> | ||
<h1 class="content-header-title"> | ||
{{ title }} | ||
</h1> | ||
</div> | ||
</ng-container> | ||
</ng-template> | ||
|
||
<ng-template #defaultBreadcrumbTemplate> | ||
<div class="col-lg-auto pl-lg-0" *abpPagePart="pageParts.breadcrumb"> | ||
<abp-breadcrumb></abp-breadcrumb> | ||
</div> | ||
<ng-container *ngIf="breadcrumbVisible"> | ||
<div class="col-lg-auto pl-lg-0" *abpPagePart="pageParts.breadcrumb"> | ||
<abp-breadcrumb></abp-breadcrumb> | ||
</div> | ||
</ng-container> | ||
</ng-template> | ||
|
||
<ng-template #defaultPageToolbarTemplate> | ||
<div class="col" *abpPagePart="pageParts.toolbar; context: record"> | ||
<abp-page-toolbar [record]="record"></abp-page-toolbar> | ||
</div> | ||
<ng-container *ngIf="toolbarVisible"> | ||
<div class="col" *abpPagePart="pageParts.toolbar; context: toolbarData"> | ||
<abp-page-toolbar [record]="toolbarData"></abp-page-toolbar> | ||
</div> | ||
</ng-container> | ||
</ng-template> |
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
2 changes: 1 addition & 1 deletion
2
...ng-packs/packages/setting-management/src/lib/components/setting-management.component.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