I try to use following checkbox, I want the state be sync to my plugin.
<$checkbox checkactions="checkUseServerStoryList"
uncheckactions="unCheckUseServerStoryList" >
<$action-sendmessage $name="checkUseServerStoryList"
$message="tm-solid-useServerStoryList" />
<$action-sendmessage $name="unCheckUseServerStoryList"
$message="tm-solid-notUseServerStoryList" />
<<lingo UseServerStoryList>>
</$checkbox>
In my plugin I receive that message:
// sync config to here
$tw.rootWidget.addEventListener('tm-solid-useServerStoryList', () => {
this.useServerStoryList = true;
console.log(this.useServerStoryList);
});
$tw.rootWidget.addEventListener('tm-solid-notUseServerStoryList', () => {
this.useServerStoryList = false;
console.log(this.useServerStoryList);
});
在此输入代码...
But nothing is log out, that is why?
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/48fa8f3c-01a0-46de-b99a-c8cac83eeeff%40googlegroups.com.