1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-03-25 21:06:55 +00:00
BurningTreeC 0ff96f9caf [pagescroller] add callback function option (#3473)
this allows using the pagescroller for scrolling elements into view where the rect gets calculated somewhere else

Example: CodeMirror has the `cm.cursorCoords()` function that returns the rect of the textselection (or cursor coordinates)

this scrolls the cursor or text selection into view using tiddlywikis pagescroller:

`$tw.pageScroller.scrollIntoView(undefined, function() { return self.cm.cursorCoords(true,"window"); });`
2018-11-15 14:58:32 +00:00
..
2018-09-28 18:18:07 +01:00
2018-11-07 16:05:56 +00:00
2018-11-07 16:51:55 +00:00
2018-01-11 12:32:24 +00:00
2015-03-31 14:39:36 +01:00
2015-02-17 10:28:54 +00:00
2014-08-07 15:49:52 +01:00

title: $:/core/readme

This plugin contains TiddlyWiki's core components, comprising:

* JavaScript code modules
* Icons
* Templates needed to create TiddlyWiki's user interface
* British English (''en-GB'') translations of the localisable strings used by the core