The range widget was such a neat idea, I thought I would investigate. 
Unfortunately, the target field requires a "px" designator. Also
there are 3 fields that need to be modified at once if you don't want a 
mess on screen, but the "actions" clause doesn't seem to work with the 
range widget. So a 
button is needed. This is what I came up with ...

Set your system to fixed story river, fluid sidebar. Make a tiddler and tag 
it with $:/tags/Sidebar. With contents:

\define myactions()
<$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/storywidth" 
$field="text" $value={{{ [[$:/themes/tiddlywiki/vanilla/metrics/storywidth2]
get[text]addsuffix[px]] }}} />
<$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyright" 
$field="text" $value={{{ [[$:/themes/tiddlywiki/vanilla/metrics/storywidth2]
get[text]addsuffix[px]] }}} />
<$action-setfield $tiddler=
"$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth" $field="text" $value={{{ 
[[$:/themes/tiddlywiki/vanilla/metrics/storywidth2]get[text]subtract[86]
addsuffix[px]] }}} />
\end
<$range tiddler="$:/themes/tiddlywiki/vanilla/metrics/storywidth2" min="600" 
max="1000" default={{{ [[$:/themes/tiddlywiki/vanilla/metrics/storywidth]
removesuffix[px]] }}} increment="1" actions=<<myactions>>/>

<$button actions=<<myactions>>>Set</$button>
{{$:/themes/tiddlywiki/vanilla/metrics/storywidth2}}


Now you can use the range widget to set the width, and then click on "set" 
to activate the changes.


On Friday, September 27, 2019 at 11:08:33 AM UTC-7, Mat wrote:
>
> Other than some dabblnig by me a few years ago I don't think there's a 
> ready plugin - but it should not be overly difficult if you accept the 
> widening to be made with a rangewidget 
> <https://tiddlywiki.com/prerelease/#RangeWidget> (as opposed to e.g 
> "grabbing" the storyriver itself).
>
> <:-)
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/605cc3a8-047e-44aa-bd67-cd815801a99c%40googlegroups.com.

Reply via email to