I would like to create <a>
element to open a tiddler in story river as the same behaviour of <$link />
widget.
This is my current method
var li = document.createElement('li');
var opts = {
"class": "tc-tiddlylink tc-tiddlylink-resolves",
text: title ,
attributes: { href: '#'+ title }
};
var tidlink = $tw.utils.domMaker("a", opts);
li.appendChild(tidlink);
It does create a link. However, this link will open tiddler at the top of story river (my setup is bottom), and also modify the URL with anchor link to tiddler.
How should I create link same as <$link />
widget using js?