In OJET version 16 .0.0 we can’t use on-oj-action in oj-menu component anymore. Instead we have to use ojMenuAction event. How to use that?
<oj-menu id=”x” on-oj-action=”[[function]]” style=”display: none” > <oj-option id=”a”> <oj-bindtext value=”value-a”></oj-bindtext> </oj-option> <oj-option id=”b”> <oj-bindtext value=”value-a”></oj-bindtext> </oj-option> </oj-menu> consider this sample code. It has a menu component with two options in it and the function will be implemented on selecting any one of the these options. This will throw an error saying that on-oj-action is depricated […]