Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

feat: Add property & event for toggling the opening or closing of the TipManager #533

Merged
merged 7 commits into from
Nov 11, 2019

Conversation

driskull
Copy link
Member

@driskull driskull commented Nov 8, 2019

Related Issue: #530

Summary

  • Add closed property to TipManager
  • Add container class for div
  • Add new event and deprecate old event
  • Update tests
  • Fix shadowed var

- Add container class for div
- Add new event and deprecate old event
- Update tests
- Fix shadowed var
@driskull driskull added enhancement New feature request for an existing component 2 - in development labels Nov 8, 2019
@driskull driskull added this to the Eberhardt milestone Nov 8, 2019
@driskull driskull requested a review from a team as a code owner November 8, 2019 21:11
@driskull driskull self-assigned this Nov 8, 2019
@driskull driskull requested review from jcfranco, antony-j and pr3tori4n and removed request for antony-j November 8, 2019 21:13
@@ -132,9 +143,15 @@ export class CalciteTipManager {

/**
* Emitted when the component has been closed.
* @deprecated
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecate old event.

@@ -551,7 +551,7 @@ <h3 class="heading" slot="header-content">WE CARE A LOT</h3>
var tipManagerButton = document.getElementById("tip-manager-button");
var tipManager = document.getElementById("tip-manager");
tipManagerButton.addEventListener("click", function(){
tipManager.hasAttribute("hidden") ? tipManager.removeAttribute("hidden") : tipManager.setAttribute("hidden", "");
tipManager.closed = !tipManager.closed;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@driskull driskull changed the title Enhancement: Add property to toggle opening/closing of TipManager feat: Add property to toggle opening/closing of TipManager Nov 11, 2019
@driskull driskull changed the title feat: Add property to toggle opening/closing of TipManager feat: Add property & event for toggling the opening or closing of the TipManager Nov 11, 2019
@driskull driskull merged commit 7d5533e into master Nov 11, 2019
@driskull driskull deleted the dris0000/tip-manager-close-property branch November 11, 2019 17:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1 - assigned enhancement New feature request for an existing component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants