-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat(mdPanel): Wrapper and Panel elements referenced in the MdPanelRef #9231
feat(mdPanel): Wrapper and Panel elements referenced in the MdPanelRef #9231
Conversation
LGTM |
@@ -214,6 +214,12 @@ angular | |||
* create. | |||
* - `isAttached` - `{boolean}`: Whether the panel is attached to the DOM. | |||
* Visibility to the user does not factor into isAttached. | |||
* - `panelContainer` - `{angular.JQLite}`: The wrapper element containing the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ErinCoughlan Not sure if you saw these earlier, but just wanted to make sure.
@ErinCoughlan Are you thinking that I should add back in the |
@ErinCoughlan that's a good idea.. that way we can make sure it's not breaking anyone |
@bradrich @EladBezalel After some thought, I think we should follow the real deprecation strategy here. We don't want to break people and we want to give them some time to migrate to the new methods.
|
@ErinCoughlan I agree with this and will move forward with the changes. |
A JQLite reference of the Container/Wrapper and Panel elements have been added to the MdPanelRef object as public properties. It is now possible to use the standard `addClass`, `removeClass`, `toggleClass`, etc methods on those referenced elements. Fixes angular#9109 Ping @ErinCoughlan
3d4876d
to
a7d6ea6
Compare
@ErinCoughlan Please take a look at the newest commit that contains the deprecation notices and warnings. |
'The addClass method is in the process of being deprecated. ' + | ||
'Full deprecation is scheduled for the Angular Material 1.2 release. ' + | ||
'To achieve the same results, use the panelContainer or panelEl ' + | ||
'JQLite elements that are referenced in MdPanelRef.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would almost even write the line to replace this one to make it even easier. Not strictly required though.
LGTM |
@bradrich can you open an issue at 1.2 milestone so we can keep track of this deprecation ? |
…ggleClass - deprecated in 2016 in favor of using the `panelContainer` or `panelEl` JQLite elements that are referenced in the MdPanelRef object. - more details in #9231 (comment) Fixes #9310 BREAKING CHANGE: The deprecated `MdPanelRef.addClass()`, `MdPanelRef.removeClass()`, and `MdPanelRef.toggleClass()` functions have been removed. These were deprecated in 2016 in favor of using the `panelContainer` or `panelEl` JQLite elements that are referenced in the [MdPanelRef](https://material.angularjs.org/latest/api/type/MdPanelRef) object. squash! refactor(tabs): remove deprecated md-no-disconnect
…ggleClass - deprecated in 2016 in favor of using the `panelContainer` or `panelEl` JQLite elements that are referenced in the MdPanelRef object. - more details in #9231 (comment) Fixes #9310 BREAKING CHANGE: The deprecated `MdPanelRef.addClass()`, `MdPanelRef.removeClass()`, and `MdPanelRef.toggleClass()` functions have been removed. These were deprecated in 2016 in favor of using the `panelContainer` or `panelEl` JQLite elements that are referenced in the [MdPanelRef](https://material.angularjs.org/latest/api/type/MdPanelRef) object. squash! refactor(tabs): remove deprecated md-no-disconnect
A JQLite reference of the Container/Wrapper and Panel elements have been added to the MdPanelRef object as public properties. It is now possible to use the standard
addClass
,removeClass
,toggleClass
, etc methods on those referenced elements.Fixes #9109