Thanks a ton Eric and all I had started to suspect something like that was
afoot but didn't have any idea how I should be going about getting things
to actually work to continue playing around.
The why not to use id's in TW is also a good point, which brings me to an
off topic question:
I needed to style a few tabs very specifically and when I was adding a
new param I could only get it to keep id's, since any Class I set using a
param was reverted back to: "tab tabSelected/tabUnselected".
I assume there has to be a way to reword the "config.macros.tabs.switchTab"
Function to allow a costume class to stick but I could never figure it out
so I decided to use id's since it was the only thing I could get working,
which I didn't really like leaving it that way.
What I changed:
config.macros.tabs.handler = function(place,macroName,params)
{
var cookie = params[0];
var numTabs = (params.length-1)/4;
var wrapper = createTiddlyElement(null,"div",null,"tabsetWrapper " +
cookie);
var tabset = createTiddlyElement(wrapper,"div",null,"tabset");
tabset.setAttribute("cookie",cookie);
var validTab = false;
var t;
for(t=0; t<numTabs; t++) {
var label = params[t*4+1];
var prompt = params[t*4+2];
var content = params[t*4+3];
var cssid = params[t*4+4]
var tab = createTiddlyButton(tabset,label,prompt,this.onClickTab,"tab
tabUnselected");
createTiddlyElement(tab,"span",null,null,"
",{style:"font-size:0pt;line-height:0px"});
tab.setAttribute("tab",label);
tab.setAttribute("id",cssid);
tab.setAttribute("content",content);
tab.title = prompt;
if(config.options[cookie] == label)
validTab = true;
}
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.