docs: onGoBack

This commit is contained in:
karishmas6
2024-06-08 00:37:13 +05:30
parent 42d0e4f021
commit d078892f71

View File

@@ -518,7 +518,14 @@ export class WorkflowGenerator {
}
}
/**
* Generates a pair for navigating to the previous page.
* This function alone adds the pair to the workflow and notifies the client.
* It's safe to always add a go back action to the first rule in the workflow and do not check
* general conditions for adding a pair to the workflow.
* @param newUrl The previous page's url.
* @returns void
*/
public onGoBack = (newUrl: string) => {
//it's safe to always add a go back action to the first rule in the workflow
this.workflowRecord.workflow[0].what.push({