Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NavigateActions

Hierarchy

  • NavigateActions

Index

Methods

  • back(): void
  • Navigate back to the previous page.

    var uActions = require('u-actions');
    var Action = uActions.Action;
    new Action('go back to last page',goBackToLast).register();
    function goBackToLast(){
    uActions.navigate.back();
    }

    Returns void

  • showPage(pageId: string): void
  • Navigate to a page with page ID.

    var uActions = require('u-actions');
    var Action = uActions.Action;
    new Action('go to testing page',goToTestingPage).register();
    function goToTestingPage(){
    uActions.navigate.showPage(uPages.get('testing page')._id);
    }

    Parameters

    • pageId: string

      The id of the page that will be navigated to.

    Returns void

  • showPageByName(pageName: string, animationType: PageTransition, direction: string): void
  • Navigate to a page with Page name.

    var uActions = require('u-actions');
    var Action = uActions.Action;
    new Action('go back to the landing page',goBackToLanding).register();
    function goBackToLanding(){
    uActions.navigate.showPageByName('Landing page',uPages.PageTransition.FADE,'auto');
    }

    Parameters

    • pageName: string

      The name of the page to navigate to.

    • animationType: PageTransition
    • direction: string

      Defaults to "auto", but can force transition to run "forward" or "backward".

    Returns void

  • showPageByNameNoHistory(pageName: string, animationType: PageTransition, direction: string): void
  • Navigate to a page with Page name, but without adding to navigation history.

    Parameters

    • pageName: string

      The name of the page to navigate to.

    • animationType: PageTransition
    • direction: string

      Defaults to "auto", but can force transition to run "forward" or "backward".

    Returns void