Skip to content

Triggering "Action-Widgets" without a user input #6380

Answered by Jermolene
msameen99 asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a way to trigger "Action Widget" (ex. action-createtiddler) without a user input? either from a JavaScript Macro or WikiText Macro?

Action widgets can only be triggered by events, particularly user interface events like button clicks, but also timers and scroll events.

JavaScript macros must not have side effects, and so must not trigger action widgets.

In other words, what is my options to "create tiddlers" without user inputs from within my Macros (WikiText or JavaScript)?

A common pattern for calling a JS function that returns a large amount of structured data is to use a widget message to trigger the function, passing parameters as required. The function should return its…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@msameen99
Comment options

Comment options

You must be logged in to vote
1 reply
@msameen99
Comment options

Answer selected by msameen99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants