File

src/lib/link/link.directive.ts

Metadata

Index

Properties
Methods
Accessors

Constructor

constructor(navigation: NavigationService, _modalViewInstance?: ModalViewInstance)

If we ask for a ModalViewInstance and we get one, then this directive is inside a modal view and thus the navigation should be forced to a new page. If no ModalViewInstance is provided, then the navigation should follow in the same page (default).

Parameters :
Name Type Optional
navigation NavigationService No
_modalViewInstance ModalViewInstance Yes

Methods

Static navigateTo
navigateTo(linkMetadata: LinkMetadata, modalViewInstance: ModalViewInstance, navigation: NavigationService, isNewPageRequired: boolean, navigationMode: NavigationMode)
Parameters :
Name Type Optional Default value
linkMetadata LinkMetadata No
modalViewInstance ModalViewInstance No
navigation NavigationService No
isNewPageRequired boolean No null
navigationMode NavigationMode No null
Returns : boolean
onLinkClick
onLinkClick(navigationMode: NavigationMode)
Parameters :
Name Type Optional Default value
navigationMode NavigationMode No null
Returns : boolean

Properties

Public isDisabled
Type : boolean
Public isNewPageRequired
Type : boolean
Default value : false

Flag to control if navigation opens a new page. Defaults is false, which maintains current behaviour. If set to true, clicking on a navigation will always open a new page, which overrides the default behaviour.

Public navigationMode
Type : NavigationMode
Default value : null

Defines the behaviour for (page) navigation

Public onBeforeLinkClick
Type : function

Callback invoked right before the link is clicked

Public url
Type : string
Default value : null
Public visibleAlt
Type : string
Public visibleTarget
Type : string

Accessors

linkParams
setlinkParams(changes: any[] | LinkMetadata)
Parameters :
Name Type Optional
changes any[] | LinkMetadata No
Returns : void

results matching ""

    No results matching ""