Lines Matching refs:page
5 - [Page Redirection](#page-redirection)
6 - [Page Return](#page-return)
7 …a Confirmation Dialog Box Before Page Return](#adding-a-confirmation-dialog-box-before-page-return)
16 …need to jump between different pages, and sometimes you need to pass data from one page to another.
21 …i/js-apis-router.md#routerreplaceurl9). Whether the target page will replace the current page depe…
23 …page is pushed into the page stack and does not replace the current page. In this mode, the state …
25 …page replaces and destroys the current page. In this mode, the resources of the current page can b…
29 …page, configure the route to this page by following instructions in <!--RP1-->[Building the Second…
32 …page stack is 32 pages. If this limit is exceeded, the [router.clear](../reference/apis-arkui/js-a…
36 …instance mode. In this mode, the target page is added to the top of the page stack, regardless of …
38 …page already exists in the page stack, the page closest to the top of the stack with the same URL …
48 …page (**Home**) and a details page (**Detail**). You want to click an offering on the home page to…
53 // On the Home page
71 …page (**Login**) and a personal center page (**Profile**). After a user successfully logs in from …
76 // On the Login page
94 …page and a **Theme** page. After a theme option on the **Setting** page is clicked, the **Theme** …
99 // On the Setting page
113 …page (**SearchResult**) and a search result details page (**SearchDetail**). You want to click a r…
118 // On the SearchResult page
134 If you need to transfer data to the target page during redirection, you can add a **params** attrib…
150 // On the Home page
171 On the target page, you can call the [getParams](../reference/apis-arkui/js-apis-router.md#routerge…
195 …plement the page return feature so that users can return to the previous page or a specified page.…
208 You can use any of the following methods to return to a page:
210 - Method 1: Return to the previous page.
219 …to the position of the previous page in the page stack. For this method to work, the previous page…
221 - Method 2: Return to a specific page.
224 Return to the page through a common route.
234 Return to the page through a named route.
240 url: 'myPage' // myPage is the alias of the page to return to.
244 …d allows users to return to a page with the specified path. For this method to work, the target pa…
246 - Method 3: Return to a specific page and pass custom parameters.
249 Return to the page through a common route.
262 Return to the page through a named route.
268 url: 'myPage', // myPage is the alias of the page to return to.
275 …page, but also pass in custom parameter information during the return process. The parameter infor…
277 On the target page, call the **router.getParams** API to obtain parameters at the desired location.…
302 … return to a specified page, all pages between the top page (included) and the specified page (exc…
304 …page, the original page will not be created repeatedly. Therefore, the variable declared using \@S…
309 …a loss, a dialog box needs to be displayed before a user returns from one page to another, asking …
313 **Figure 3** Adding a confirmation dialog box before page return
329 …page return, call the [router.showAlertBeforeBackPage](../reference/apis-arkui/js-apis-router.md#r…
348 // Invoke the router.back() API to return to the previous page.
356 If the API is called successfully, the confirmation dialog box is displayed on the target page. Oth…
358 …ion. If the user selects **Cancel**, the application stays on the current page. If the user select…
398 // Invoke the router.back() API to return to the previous page.
409 …ion. If the user selects **Cancel**, the application stays on the current page. If the user select…
413 To redirect to a page in a [HAR](../quick-start/har-package.md) or [HSP](../quick-start/in-app-hsp.…
448 When the configuration is successful, import the named route page to the page from which you want t…
452 import '@ohos/library/src/main/ets/pages/Index'; // Import the named route page from the library of…
464 .onClick(() => { // Click to go to a page in another shared package.