src/lib/link/link.directive.ts
| Selector | [cmf-core-controls-link] |
Properties |
|
Methods |
|
Accessors |
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 :
|
| Static navigateTo | ||||||||||||||||||||||||
navigateTo(linkMetadata: LinkMetadata, modalViewInstance: ModalViewInstance, navigation: NavigationService, isNewPageRequired: boolean, navigationMode: NavigationMode)
|
||||||||||||||||||||||||
|
Parameters :
Returns :
boolean
|
| onLinkClick | ||||||||
onLinkClick(navigationMode: NavigationMode)
|
||||||||
|
Parameters :
Returns :
boolean
|
| 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
|
| linkParams | ||||||
setlinkParams(changes: any[] | LinkMetadata)
|
||||||
|
Parameters :
Returns :
void
|