1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-14 05:44:50 +00:00
TiddlyWiki5/editions/dev/tiddlers/new/Hook__th-navigating.tid

20 lines
661 B
Plaintext
Raw Normal View History

2017-02-19 15:47:37 +00:00
created: 20170219130829546
modified: 20170219145518777
tags: HookMechanism
title: Hook: th-navigating
type: text/vnd.tiddlywiki
This hook allows plugins to monitor and modify navigation events.
Hook function parameters:
* ''event'': object describing the navigation event:
** ''event.navigateTo'': title of target tiddler
** ''event.navigateFromTitle'': title of tiddler containing the
** ''event.navigateSuppressNavigation'': boolean; when true the target tiddler opens without the usual scrolling
** ''event.navigateFromClientRect'': rectange in client coordinates of the DOM node triggering the navigation
Return value:
* possibly modified event object