-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(popover): allow templates as popover title
- Loading branch information
1 parent
850b3ff
commit 340c9b3
Showing
6 changed files
with
67 additions
and
15 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
demo/src/app/components/popover/demos/tplcontent/popover-tplcontent.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,9 +1,10 @@ | ||
<p> | ||
Popovers can contain any arbitrary HTML, Angular bindings and even directives! | ||
Simply enclose desired content in a <code><ng-template></code> element. | ||
Simply enclose desired content or title in a <code><ng-template></code> element. | ||
</p> | ||
|
||
<ng-template #popContent>Hello, <b>{{name}}</b>!</ng-template> | ||
<button type="button" class="btn btn-outline-secondary" [ngbPopover]="popContent" popoverTitle="Fancy content"> | ||
<ng-template #popTitle>Fancy <b>content!!</b></ng-template> | ||
<button type="button" class="btn btn-outline-secondary" [ngbPopover]="popContent" [popoverTitle]="popTitle"> | ||
I've got markup and bindings in my popover! | ||
</button> |
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
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
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
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
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