mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-02 22:39:56 +00:00
80256b4dab
* Add string '.htm' to 'Saving with TiddlyIE' * Change external links to match locale with wiki language * Add instructions for use to 'Saving on Android' * Change string in 'task' * Change instructions for use in 'Saving on iPad/iPhone' * Add newline to 'TiddlyDesktop Releases' * Remove caption from 'Serving TW5 from Android' * Change link to external in tiddlers which tagged 'Editions' * Remove string 'index.html' from 'Some of the things you can do with TiddlyWiki' * Change link 'TiddlyWiki Groups' to 'Forums' in tiddlers which tagged 'Community' * Remove CamelCase link 'TiddlyWiki' from tiddlers tagged 'Community' * Change string 'done' to 'Upgrade' in 'UpgradeMechanism' * Change buttons to images in 'How to export tiddlers' * Add images about buttons to tiddlers * Add quotation mark to text 'edit' in 'Signing the Contributor License Agreement' * Rename 'UsingSVG' to 'Using SVG' * Change link 'TypedBlockWikiText' to 'Typed Blocks in WikiText' in 'Using SVG' * Add tiddler 'Using Stamp' * Add 'rel="noopener noreferrer"' to external links * Add description about 'rel="noreferrer"' to 'HTML in WikiText' * Add link of prerelease version about translators edition, and how to translate on Node.js, in 'Translate TiddlyWiki into your language' * Change string 'dropdown' to 'tab' in 'Installing a plugin from the plugin library' * Add download button to 'Empty Edition'
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
created: 20131212195353929
|
|
modified: 20150220161302000
|
|
tags: Widgets
|
|
title: RadioWidget
|
|
type: text/vnd.tiddlywiki
|
|
caption: radio
|
|
|
|
! Introduction
|
|
|
|
The radio widget displays an HTML `<input type="radio">` that reflects whether a given tiddler field has a specified value. Selecting the radio button sets to the tiddler field to the value.
|
|
|
|
! Content and Attributes
|
|
|
|
The content of the `<$radio>` widget is displayed within an HTML `<label>` element also containing the radio button. This means that clicking on the content will have the same effect as clicking on the button itself.
|
|
|
|
|!Attribute |!Description |
|
|
|tiddler |Title of the tiddler to manipulate (defaults to the [[current tiddler|Current Tiddler]]) |
|
|
|field |The name of the field to which the radio button will be bound |
|
|
|value |The value for the tiddler field |
|
|
|class |CSS classes to be assigned to the label around the radio button |
|
|
|
|
! Example
|
|
|
|
This example uses the radio widget to change the `modifier` field of this tiddler:
|
|
|
|
```
|
|
<$radio field="modifier" value="JoeBloggs"> Joe Bloggs</$radio>
|
|
|
|
<$radio field="modifier" value="JaneBloggs"> Jane Bloggs</$radio>
|
|
```
|
|
|
|
It renders as:
|
|
|
|
<$radio field="modifier" value="JoeBloggs"> Joe Bloggs</$radio>
|
|
|
|
<$radio field="modifier" value="JaneBloggs"> Jane Bloggs</$radio>
|