Skip to content

Commit

Permalink
Renamed to mouseOut and mouseOver. Changed back package name
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkleingit committed Dec 27, 2019
1 parent 697ca6f commit b8bbc1f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions example/cli/src/app/actions/actions.component.ts
Expand Up @@ -17,13 +17,13 @@ const actionMapping:IActionMapping = {
? TREE_ACTIONS.TOGGLE_ACTIVE_MULTI(tree, node, $event)
: TREE_ACTIONS.TOGGLE_ACTIVE(tree, node, $event);
},
mouseover: (tree, node, $event) => {
mouseOver: (tree, node, $event) => {
$event.preventDefault();
console.log(`mouseover ${node.data.name}`);
console.log(`mouseOver ${node.data.name}`);
},
mouseout: (tree, node, $event) => {
mouseOut: (tree, node, $event) => {
$event.preventDefault();
console.log(`mouseout ${node.data.name}`);
console.log(`mouseOut ${node.data.name}`);
}
},
keys: {
Expand Down
8 changes: 4 additions & 4 deletions example/cli/src/app/fulltree/fulltree.component.ts
Expand Up @@ -17,13 +17,13 @@ const actionMapping: IActionMapping = {
? TREE_ACTIONS.TOGGLE_ACTIVE_MULTI(tree, node, $event)
: TREE_ACTIONS.TOGGLE_ACTIVE(tree, node, $event)
},
mouseover: (tree, node, $event) => {
mouseOver: (tree, node, $event) => {
$event.preventDefault();
console.log(`mouseover ${node.data.name}`);
console.log(`mouseOver ${node.data.name}`);
},
mouseout: (tree, node, $event) => {
mouseOut: (tree, node, $event) => {
$event.preventDefault();
console.log(`mouseout ${node.data.name}`);
console.log(`mouseOut ${node.data.name}`);
}
},
keys: {
Expand Down
4 changes: 2 additions & 2 deletions lib/components/tree-node-wrapper.component.ts
Expand Up @@ -14,8 +14,8 @@ import { TreeNode } from '../models/tree-node.model';
[class.node-content-wrapper-focused]="node.isFocused"
(click)="node.mouseAction('click', $event)"
(dblclick)="node.mouseAction('dblClick', $event)"
(mouseover)="node.mouseAction('mouseover', $event)"
(mouseout)="node.mouseAction('mouseout', $event)"
(mouseover)="node.mouseAction('mouseOver', $event)"
(mouseout)="node.mouseAction('mouseOut', $event)"
(contextmenu)="node.mouseAction('contextMenu', $event)"
(treeDrop)="node.onDrop($event)"
(treeDropDragOver)="node.mouseAction('dragOver', $event)"
Expand Down
4 changes: 2 additions & 2 deletions lib/models/tree-options.model.ts
Expand Up @@ -71,8 +71,8 @@ export interface IActionMapping {
dragLeave?: IActionHandler,
dragEnter?: IActionHandler,
drop?: IActionHandler,
mouseover?: IActionHandler,
mouseout?: IActionHandler
mouseOver?: IActionHandler,
mouseOut?: IActionHandler
};
keys?: {
[key: number]: IActionHandler
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,5 +1,5 @@
{
"name": "angular-tree-component-mouseevent",
"name": "angular-tree-component",
"version": "8.4.0",
"description": "A simple yet powerful tree component for Angular2",
"author": "Adam Klein <adam@500tech.com>",
Expand Down

0 comments on commit b8bbc1f

Please sign in to comment.