Add support for action widgets

This is part of the groundwork for fixing #336
This commit is contained in:
Jermolene
2014-10-08 17:45:26 +01:00
parent 3b69b7b6e8
commit 0dcf54c3b5
11 changed files with 303 additions and 17 deletions

View File

@@ -1,17 +1,22 @@
title: ButtonWidget
created: 201310241419
modified: 201406170837
tags: Widgets
caption: button
created: 20131024141900000
modified: 20141008145311298
tags: Widgets
title: ButtonWidget
type: text/vnd.tiddlywiki
! Introduction
The button widget displays an HTML `<button>` element that can perform a combination of optional actions when clicked:
* Navigate to a specified tiddler
* Dispatch a user defined [[widget message|Messages]]
* Trigger a user defined [[popup|PopupMechanism]]
* Assign new text to a specified tiddler
* Executing any ActionWidgets that are immediate children of the button widget
* Execute any integrated actions:
** Navigate to a specified tiddler
** Dispatch a user defined [[widget message|Messages]]
** Trigger a user defined [[popup|PopupMechanism]]
** Assign new text to a specified tiddler
The integrated actions are provided as a shortcut for invoking common actions. The same functionality is available via ActionWidgets, with the exception of the support for highlighting selected popups.
! Content and Attributes