1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-08-07 22:33:50 +00:00

Added MessageHandlerWidgets and TriggeringWidgets tags (#6161)

This commit is contained in:
btheado 2021-11-01 08:56:52 -04:00 committed by GitHub
parent d21fabca4b
commit 7a50603d9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 60 additions and 36 deletions

View File

@ -0,0 +1,12 @@
created: 20211031174746965
modified: 20211031181800684
title: MessageHandlerWidgets
type: text/vnd.tiddlywiki
Message handler widgets are those widgets which can react to one or more [[widget messages|Messages]].
<<.tip "Widget messages are similar to low-level DOM events, except they are higher-level and specific to TiddlyWiki. To handle DOM events see the EventCatcherWidget">>
The following message handler widgets are provided:
<<list-links "[tag[MessageHandlerWidgets]]">>

View File

@ -0,0 +1,12 @@
created: 20211031172716741
modified: 20211031174029381
title: TriggeringWidgets
type: text/vnd.tiddlywiki
Triggering widgets are a type of widget which can trigger ActionWidgets. Typically these widgets (such as the ButtonWidget) will trigger actions based on interaction from the user.
The following triggering widgets are provided:
<<list-links "[tag[TriggeringWidgets]]">>
See ActionWidgets for more information and examples of how TriggeringWidgets and ActionWidgets work together.

View File

@ -1,10 +1,10 @@
created: 20141008134425548 created: 20141008134425548
modified: 20210630163127249 modified: 20211031172913375
tags: Widgets tags: Widgets
title: ActionWidgets title: ActionWidgets
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki
Action widgets are a special type of widget that have no visual appearance but perform an action when triggered (such as sending a message, navigating to a tiddler, or changing the value of a tiddler). Action widgets are used in association with other widgets that trigger those actions (for example, the ButtonWidget). Action widgets are a special type of widget that have no visual appearance but perform an action when triggered (such as sending a message, navigating to a tiddler, or changing the value of a tiddler). Action widgets are used in association with other widgets that [[trigger those actions|TriggeringWidgets]] (for example, the ButtonWidget).
The following action widgets are provided: The following action widgets are provided:
@ -17,7 +17,7 @@ There are two ways to use action widgets:
!! Using action string attributes !! Using action string attributes
The action widgets are passed as a string to the `actions` attribute of the triggering widget. Usually, it is more convenient to use a macro to assign the action widgets to a variable. For example, here is a button that triggers two actions of sending different messages: The action widgets are passed as a string to the `actions` attribute of the [[triggering widget|TriggeringWidgets]]. Usually, it is more convenient to use a macro to assign the action widgets to a variable. For example, here is a button that triggers two actions of sending different messages:
``` ```
\define my-actions() \define my-actions()
@ -32,7 +32,7 @@ Click me!
!! Directly embedding action widgets !! Directly embedding action widgets
The action widgets need not be immediate children of their triggering widget, but they must be descendents of it. The actions are performed in sequence. Here is the above example rewritten to use embedding: The action widgets need not be immediate children of their [[triggering widget|TriggeringWidgets]], but they must be descendents of it. The actions are performed in sequence. Here is the above example rewritten to use embedding:
``` ```
<$button> <$button>

View File

@ -1,7 +1,7 @@
caption: button caption: button
created: 20131024141900000 created: 20131024141900000
modified: 20201108183908170 modified: 20211009121239795
tags: Widgets tags: Widgets TriggeringWidgets
title: ButtonWidget title: ButtonWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki

View File

@ -1,7 +1,7 @@
caption: checkbox caption: checkbox
created: 20131024141900000 created: 20131024141900000
modified: 20201109090732190 modified: 20211009121239806
tags: Widgets tags: Widgets TriggeringWidgets
title: CheckboxWidget title: CheckboxWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki

View File

@ -1,7 +1,7 @@
caption: draggable caption: draggable
created: 20170406081938627 created: 20170406081938627
modified: 20210912141544224 modified: 20211009122105437
tags: Widgets tags: Widgets TriggeringWidgets
title: DraggableWidget title: DraggableWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki

View File

@ -1,7 +1,7 @@
caption: droppable caption: droppable
created: 20170406082820317 created: 20170406082820317
modified: 20200317142604572 modified: 20211009122023265
tags: Widgets tags: Widgets TriggeringWidgets
title: DroppableWidget title: DroppableWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki

View File

@ -1,7 +1,7 @@
caption: dropzone caption: dropzone
created: 20131024141900000 created: 20131024141900000
modified: 20210506115809131 modified: 20211009122205481
tags: Widgets tags: Widgets TriggeringWidgets
title: DropzoneWidget title: DropzoneWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki

View File

@ -1,7 +1,7 @@
caption: edit-text caption: edit-text
created: 20131024141900000 created: 20131024141900000
modified: 20211021091910134 modified: 20211021091910134
tags: Widgets tags: Widgets TriggeringWidgets
title: EditTextWidget title: EditTextWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki

View File

@ -1,7 +1,7 @@
caption: edit caption: edit
created: 20131024141900000 created: 20131024141900000
modified: 20201130184647904 modified: 20211009121634055
tags: Widgets tags: Widgets TriggeringWidgets
title: EditWidget title: EditWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki

View File

@ -1,6 +1,6 @@
created: 20201123113532200 created: 20201123113532200
modified: 20210805083352068 modified: 20211031180336257
tags: Widgets tags: Widgets TriggeringWidgets
title: EventCatcherWidget title: EventCatcherWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki

View File

@ -1,9 +1,9 @@
caption: fieldmangler
created: 20131024141900000 created: 20131024141900000
modified: 20150220161229000 modified: 20211009122821085
tags: Widgets tags: Widgets MessageHandlerWidgets
title: FieldManglerWidget title: FieldManglerWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki
caption: fieldmangler
! Introduction ! Introduction

View File

@ -1,7 +1,7 @@
caption: keyboard caption: keyboard
created: 20140302192136805 created: 20140302192136805
modified: 20210612101618855 modified: 20211009121239821
tags: Widgets tags: Widgets TriggeringWidgets
title: KeyboardWidget title: KeyboardWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki

View File

@ -1,7 +1,7 @@
caption: linkcatcher caption: linkcatcher
created: 20131024141900000 created: 20131024141900000
modified: 20170707111536556 modified: 20211009122821108
tags: Widgets tags: Widgets MessageHandlerWidgets TriggeringWidgets
title: LinkCatcherWidget title: LinkCatcherWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki

View File

@ -1,6 +1,6 @@
created: 20210309133636211 created: 20210309133636211
modified: 20210711193113104 modified: 20211009122821123
tags: Widgets tags: Widgets MessageHandlerWidgets TriggeringWidgets
title: MessageCatcherWidget title: MessageCatcherWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki

View File

@ -1,7 +1,7 @@
caption: navigator caption: navigator
created: 20131024141900000 created: 20131024141900000
modified: 20170629074415261 modified: 20211009122821140
tags: Widgets tags: Widgets MessageHandlerWidgets
title: NavigatorWidget title: NavigatorWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki

View File

@ -1,7 +1,7 @@
caption: radio caption: radio
created: 20131212195353929 created: 20131212195353929
modified: 20210307154753471 modified: 20211009121654734
tags: Widgets tags: Widgets TriggeringWidgets
title: RadioWidget title: RadioWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki

View File

@ -1,7 +1,7 @@
caption: range caption: range
created: 20171102134825376 created: 20171102134825376
modified: 20201130193635857 modified: 20211009121606405
tags: Widgets tags: Widgets TriggeringWidgets
title: RangeWidget title: RangeWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki

View File

@ -1,7 +1,7 @@
caption: select caption: select
created: 20131024141900000 created: 20131024141900000
modified: 20190304122040876 modified: 20211009121812691
tags: Widgets tags: Widgets TriggeringWidgets
title: SelectWidget title: SelectWidget
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki