Skip to content

Commit

Permalink
fix(core): updated
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalosard committed Nov 3, 2022
1 parent efa2019 commit 39ff691
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/angular/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ export declare interface IxMenuItem extends Components.IxMenuItem {
/**
* Event to emit to parent that the item was selected
*/
itemClicked: EventEmitter<CustomEvent<boolean>>;
onClick: EventEmitter<CustomEvent<boolean>>;

}

Expand All @@ -1025,7 +1025,7 @@ export class IxMenuItem {
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
proxyOutputs(this, this.el, ['itemClicked']);
proxyOutputs(this, this.el, ['onClick']);
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/core/component-doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4462,7 +4462,7 @@
"parts": [],
"listeners": [
{
"event": "itemClicked",
"event": "onClick",
"target": "body",
"capture": false,
"passive": false
Expand Down Expand Up @@ -5086,7 +5086,7 @@
"methods": [],
"events": [
{
"event": "itemClicked",
"event": "onClick",
"detail": "boolean",
"bubbles": true,
"cancelable": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2699,7 +2699,7 @@ declare namespace LocalJSX {
/**
* Event to emit to parent that the item was selected
*/
"onItemClicked"?: (event: CustomEvent<boolean>) => void;
"onOnClick"?: (event: CustomEvent<boolean>) => void;
/**
* Icon name from @siemens/ix-icons
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/components/menu-item/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ SPDX-License-Identifier: MIT

## Events

| Event | Description | Type |
| ------------- | -------------------------------------------------- | ---------------------- |
| `itemClicked` | Event to emit to parent that the item was selected | `CustomEvent<boolean>` |
| Event | Description | Type |
| --------- | -------------------------------------------------- | ---------------------- |
| `onClick` | Event to emit to parent that the item was selected | `CustomEvent<boolean>` |


----------------------------------------------
Expand Down

0 comments on commit 39ff691

Please sign in to comment.