/
Call class page function from element Event
Convertigo Public Knowledge base
Call class page function from element Event
You can Edit page class to add your custom functions.
To call these function in an element Event, for example, you may:
_ Add an attribute, for example (contextmenu) in the element and directly call the function:
this['my_custom_function']()
or
my_custom_function()
_ Add an Event component to the Element and fill it with (contextmenu). Add a CustomAction component as a child, call your custom function:
page['my_custom_function'](params);
You may need to add the following code to prevent default browser behaviour:
event.preventDefault();
Related content
Call a custom Page function from a customAction component
Call a custom Page function from a customAction component
More like this
Create Menu and sub-menus
Create Menu and sub-menus
More like this
Call a sequence automatically when the application is starting and not using an onclick button
Call a sequence automatically when the application is starting and not using an onclick button
More like this
Custom events
Custom events
More like this
Custom ActionSheet Controller
Custom ActionSheet Controller
More like this
Passing parameters to a page
Passing parameters to a page
More like this
(c) Convertigo 2023 https://www.convertigo.com