You need to sign in to do that
Don't have an account?
shaik riyaz 13
how to convert auro controller to lwc js
({
openModel: function(component, event, helper) {
// Set isModalOpen attribute to true
component.set("v.isModalOpen", true);
},
closeModel: function(component, event, helper) {
// Set isModalOpen attribute to false
component.set("v.isModalOpen", false);
},
handleSelect: function (cmp, event, helper) {
// This will contain the string of the "value" attribute of the selected
// lightning:menuItem
var selectedMenuItemValue = event.getParam("value");
alert("Menu item selected with value: " + selectedMenuItemValue);
}
})
openModel: function(component, event, helper) {
// Set isModalOpen attribute to true
component.set("v.isModalOpen", true);
},
closeModel: function(component, event, helper) {
// Set isModalOpen attribute to false
component.set("v.isModalOpen", false);
},
handleSelect: function (cmp, event, helper) {
// This will contain the string of the "value" attribute of the selected
// lightning:menuItem
var selectedMenuItemValue = event.getParam("value");
alert("Menu item selected with value: " + selectedMenuItemValue);
}
})
Try Below Code Please Mark It As best Answer If It Helps
Thank You!
All Answers
Try Below Code Please Mark It As best Answer If It Helps
Thank You!
Kindly refer this article to upgrate the component to Lightning web component :-
https://www.soliantconsulting.com/blog/salesforce-aura-lightning/
Kindly mark it as the best answer if this provides you helpful information.
Thanks!