Skip to content

Commit

Permalink
Merge pull request #18 from unicef-polymer/add-optional-header
Browse files Browse the repository at this point in the history
added feature to have header say optional
  • Loading branch information
robertavram authored Nov 29, 2017
2 parents 544aaab + 5e29a5c commit 614c25d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "etools-repeatable-field-set",
"description": "A container that helps to display repeatable data sets with counters and options to manage data: add, modify, delete(with confirmation), copy.",
"version": "1.0.9",
"version": "1.1.0",
"license": "https://github.com/unicef-polymer/etools-repeatable-field-set/blob/master/LICENSE.md",
"main": "etools-repeatable-field-set.html",
"dependencies": {
Expand Down
11 changes: 10 additions & 1 deletion etools-repeatable-field-set.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,19 @@
margin-left: 19px;
@apply(--repeatable-items-lone-vertical-divider);
}
.show-optional {
font-size: 14px;
opacity: 0.6;
line-height: 20px;
}
</style>

<div class="element-container">
<paper-material elevation="[[elevation]]">

<paper-toolbar hidden$="{{!showHeader}}">
<paper-icon-button on-click="_toggle" icon$="[[_getExpandBtnIcon(open)]]"></paper-icon-button>
<div class="title">[[title]] <span hidden$="{{!showCounter}}">([[model.length]])</span></div>
<div class="title">[[title]] <span hidden$="{{!showCounter}}">([[model.length]])</span><span class="show-optional"> [[optionalSecondary]]</span></div>

</paper-toolbar>

Expand Down Expand Up @@ -243,6 +248,10 @@
type: Boolean,
value: false,
},
optionalSecondary: {
type: String,
value: ""
},
allowCopy: {
type: Boolean,
value: false
Expand Down

0 comments on commit 614c25d

Please sign in to comment.