Reputation: 263
We are using below function in java script to trigger oj-dialog and its working fine.
else if(operation === "fmethod"){
var popup = document.getElementById("fPopUp");
if (!popup.isOpen()) {
popup.open();
}
return;
But when I am using the same function to trigger oj-menu or any other oj element we are getting "popup.isOpen is not a funtion" error.
Can someone let me know what should be the equivalent syntax of javascript to trigger or start oj-menu.
Upvotes: -1
Views: 244
Reputation: 1281
There is no need for isOpen test since open function closes current oj-menu and then re-open it for you.
See example at https://www.oracle.com/webfolder/technetwork/jet/jetCookbook.html?component=menu&demo=menuOpen
Upvotes: 0
Reputation: 263
oj-menu component is not a popup component. So initiate oj-menu we have to use it along with oj-menu-button component.
Upvotes: 0