Extend button widget to allow navigating to a tiddler

Fixes #327
This commit is contained in:
Jermolene
2014-02-22 16:13:16 +00:00
parent ec606c89d2
commit 2ab0facf3a
4 changed files with 13 additions and 6 deletions
@@ -1,12 +1,13 @@
title: ButtonWidget
created: 201310241419
modified: 201310300837
modified: 201402220837
tags: widget
! Introduction
The button widget displays an HTML `<button>` element that can perform a combination optional actions when clicked:
* Navigate to a specified tiddler
* Dispatch a user defined [[widget message|WidgetMessages]]
* Trigger a user defined [[popup|PopupMechanism]]
* Assign new text to a specified tiddler
@@ -16,6 +17,7 @@ The button widget displays an HTML `<button>` element that can perform a combina
The content of the `<$button>` widget is displayed within the button.
|!Attribute |!Description |
|to |The title of the tiddler to navigate to |
|message |The name of the [[widget message|WidgetMessages]] to send when the button is clicked |
|param |The optional parameter to the message |
|set |The title of a tiddler to which a new value will be assigned |