-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create generic sectionHeader directive #1450
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
app/shared/directives/ipaSectionHeader/ipaSectionHeader.css
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.ipa-section-header { | ||
padding: 13px 15px 13px 15px; | ||
background-color: #F8F8F8; | ||
border: 1px solid #CCCCCC; | ||
margin-top: 25px; | ||
border-radius: 3px; | ||
} | ||
|
||
.ipa-section-header__text { | ||
font-size: 14px; | ||
font-weight: 500; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="ipa-section-header"> | ||
<div class="ipa-section-header__text"> | ||
{{ headerText }} | ||
</div> | ||
</div> |
17 changes: 17 additions & 0 deletions
17
app/shared/directives/ipaSectionHeader/ipaSectionHeader.js
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
sharedApp.directive("ipaSectionHeader", this.ipaSectionHeader = function() { | ||
return { | ||
restrict: 'E', // Use this via an element selector <ipa-modal></ipa-modal> | ||
templateUrl: 'ipaSectionHeader.html', // directive html found here: | ||
scope: { | ||
headerText: '<' | ||
}, | ||
replace: true, // Replace with the template below | ||
link: function(scope, element, attrs) { | ||
/* Example Usage: | ||
<ipa-section-header | ||
header-text="supportCall.title"> | ||
</ipa-section-header> | ||
*/ | ||
} | ||
}; | ||
}); |