Skip to content

Commit d721693

Browse files
authored
Merge pull request #14153 from IgniteUI/ganastasov/fix-14151-master
chore(toggle): Adjust event handling examples to utilize the actual events - master
2 parents c516883 + cd677bf commit d721693

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projects/igniteui-angular/src/lib/directives/toggle/toggle.directive.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class IgxToggleDirective implements IToggleView, OnInit, OnDestroy {
4848
* ```html
4949
* <div
5050
* igxToggle
51-
* (onOpened)='onToggleOpened($event)'>
51+
* (opened)='onToggleOpened($event)'>
5252
* </div>
5353
* ```
5454
*/
@@ -67,7 +67,7 @@ export class IgxToggleDirective implements IToggleView, OnInit, OnDestroy {
6767
* ```html
6868
* <div
6969
* igxToggle
70-
* (onOpening)='onToggleOpening($event)'>
70+
* (opening)='onToggleOpening($event)'>
7171
* </div>
7272
* ```
7373
*/
@@ -86,7 +86,7 @@ export class IgxToggleDirective implements IToggleView, OnInit, OnDestroy {
8686
* ```html
8787
* <div
8888
* igxToggle
89-
* (onClosed)='onToggleClosed($event)'>
89+
* (closed)='onToggleClosed($event)'>
9090
* </div>
9191
* ```
9292
*/
@@ -124,7 +124,7 @@ export class IgxToggleDirective implements IToggleView, OnInit, OnDestroy {
124124
* ```html
125125
* <div
126126
* igxToggle
127-
* (onAppended)='onToggleAppended()'>
127+
* (appended)='onToggleAppended()'>
128128
* </div>
129129
* ```
130130
*/
@@ -376,7 +376,7 @@ export class IgxToggleDirective implements IToggleView, OnInit, OnDestroy {
376376

377377
// in case event is not canceled this will close the toggle and we need to unsubscribe.
378378
// Otherwise if for some reason, e.g. close on outside click, close() gets called before
379-
// onClosed was fired we will end with calling onClosing more than once
379+
// closed was fired we will end with calling closing more than once
380380
if (!e.cancel) {
381381
this.clearSubscription(this._overlayClosingSub);
382382
}

0 commit comments

Comments
 (0)