Skip to content

Commit

Permalink
Create generic sectionHeader directive #1450
Browse files Browse the repository at this point in the history
  • Loading branch information
ltwheeler committed Jan 16, 2018
1 parent 8d327c5 commit 46a6c03
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/shared/directives/ipaSectionHeader/ipaSectionHeader.css
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;
}
5 changes: 5 additions & 0 deletions app/shared/directives/ipaSectionHeader/ipaSectionHeader.html
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 app/shared/directives/ipaSectionHeader/ipaSectionHeader.js
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>
*/
}
};
});

0 comments on commit 46a6c03

Please sign in to comment.