Skip to content

Commit

Permalink
Adjust demo's to show callback function for icons.
Browse files Browse the repository at this point in the history
References:
PR#158
Issue #158
Issue #129
Issue #151
Issue #249
  • Loading branch information
bbrala committed Aug 30, 2015
1 parent 1f68618 commit 45bea29
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 16 deletions.
4 changes: 3 additions & 1 deletion demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ <h3 id="code">Example code: Simple Context Menu</h3>
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){
return 'icon icon-quit';
}}
}
});

Expand Down
2 changes: 1 addition & 1 deletion demo/accesskeys.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h3 id="code">Example code: Accesskeys</h3>
"paste": {name: "Paste", icon: "paste", accesskey: "cool paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion demo/accesskeys_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h3 id="code">Example code: Accesskeys</h3>
"paste": {name: "Paste", icon: "paste", accesskey: "cool paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion demo/callback.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h3 id="code">Example code: Command's action (callbacks)</h3>
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion demo/callback_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h3 id="code">Example code: Command's action (callbacks)</h3>
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion demo/disabled-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h3 id="code">Example code: Disabled Context Menu</h3>
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
});

Expand Down
2 changes: 1 addition & 1 deletion demo/dynamic-create.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h3 id="code">Example code: Dynamic on-demand Menu</h3>
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion demo/dynamic.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h3 id="code">Example code: Adding new Context Menu Triggers</h3>
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
});
});
Expand Down
6 changes: 3 additions & 3 deletions demo/menu-title.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ <h3 id="code">Example code: Menu Title</h3>
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
});

Expand All @@ -132,7 +132,7 @@ <h3 id="code">Example code: Menu Title</h3>
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
});

Expand All @@ -151,7 +151,7 @@ <h3 id="code">Example code: Menu Title</h3>
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
});

Expand Down
2 changes: 1 addition & 1 deletion demo/on-dom-element.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h3 id="code">Example code: Context Menu on DOM Element</h3>
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion demo/trigger-custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h3 id="code">Example code: Custom Activated Context Menu</h3>
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion demo/trigger-hover-autohide.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ <h3 id="code">Example code: Hover Activated Context Menu With Autohide</h3>
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion demo/trigger-hover.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h3 id="code">Example code: Hover Activated Context Menu</h3>
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion demo/trigger-left-click.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h3 id="code">Example code: Left-Click Trigger</h3>
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: "quit"}
"quit": {name: "Quit", icon: function(){ return 'icon icon-quit'; }}
}
});
});
Expand Down

0 comments on commit 45bea29

Please sign in to comment.