Hello,
I'm new to TiddlyWiki and I need some help. A lot of help, in fact. But for clarity, I'll try to keep it to one problem per post unless told to do otherwise.
Problem #1:
Background: I'm trying to create a button that can be used to assign a color to a known field of a tiddler. The button should end up being colored like the last button visible in the color palette macro once the color has been picked.
Problem: I can't figure out how to get the button used to open the popup to get changed to the color chosen in the palette.
Code so far:
<$button popup=<<qualify "colorcal_">>>Pop me up!</$button>
<$reveal type="popup" state=<<qualify "colorcal_">>>
<div class="tc-popup-keep">
! This is the popup
Colour: <$edit-text tiddler='$:/_MyColour' tag='input' placeholder='(unset)' default=''/>
---
<$macrocall $name='colour-picker' actions="
<$action-setfield $field=<<qualify colorfield1_>> $tiddler=<<currentTiddler>> $value=<<colour-picker-value>>/>
"/>
</div>
</$reveal>
I also don't know how best to post my code here. First time I've used Google Groups to ask about code. Sorry if I got it wrong.