/
Code to ClearDataSource and RootPage
Convertigo Public Knowledge base
Code to ClearDataSource and RootPage
If you want to write your own code to perform a ClearDataSource and a RootPage, here is the code to write:
page.deleteListen(['<project_name.sequence_name>']);
page.routerProvider.setRoot('<page_name>', <{data_object}>, <options>);
For example, in a customAction component, under an onClick event, you may write:
page.deleteListen(['root_clear.get_people']);
page.routerProvider.setRoot('Page1_code', {id: 5}, null);
Related content
Custom ActionSheet Controller
Custom ActionSheet Controller
More like this
Call a custom Page function from a customAction component
Call a custom Page function from a customAction component
More like this
Closing a modal with Android back button
Closing a modal with Android back button
More like this
Passing parameters to a page
Passing parameters to a page
More like this
Create Menu and sub-menus
Create Menu and sub-menus
More like this
trackBy to prevent data list to scroll back at data renewing
trackBy to prevent data list to scroll back at data renewing
More like this
(c) Convertigo 2023 https://www.convertigo.com