diff options
author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-15 09:07:34 -0400 |
---|---|---|
committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-15 09:07:34 -0400 |
commit | a6ce1b33e9fa9e5c2138b9ea3eea1fdac893194d (patch) | |
tree | bd0305b15c056ed1d13ef97e861700e1818453cf /src/components/competition-element.js | |
parent | bd35d990fae2e5747233d22628bafe3531c91748 (diff) |
Created way to show day of comeptition for competition element.
Diffstat (limited to 'src/components/competition-element.js')
-rw-r--r-- | src/components/competition-element.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/competition-element.js b/src/components/competition-element.js index fa00bca..dddd441 100644 --- a/src/components/competition-element.js +++ b/src/components/competition-element.js @@ -33,7 +33,7 @@ class CompetitionElement extends LitElement { onmouseover ="${() => this.toggleTab()}" onmouseout ="${() => this.toggleTab()}"> <div class="card-content"> - <h3>${props.name.replace(/[0-9]/g, '')}</h3> + <h3>${props.name.replace(/[0-9]/g, '') + props.day}</h3> <h4>${props.location}</h4> <p hidden="${!props.infoTabOpen}"> ${props.information}</p> </div> @@ -59,6 +59,7 @@ class CompetitionElement extends LitElement { static get properties() { return { name: String, + day: String, information: String, location: String, infoTabOpen: Boolean, @@ -70,6 +71,7 @@ class CompetitionElement extends LitElement { super(); this.name = "Competition"; + this.day = ""; this.information = "Competition Information"; this.location = "Competition Location"; this.infoTabOpen = false; |