Ticket #608 (closed enhancement: fixed)
toolbar ">" should toggle between "more/less" and display extra commands on separate line
| Reported by: | EricShulman | Owned by: | EricShulman |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.5.1 |
| Component: | core | Version: | |
| Severity: | trivial | Keywords: | |
| Cc: |
Description (last modified by EricShulman) (diff)
This change would extend the <<toolbar>> macro to make the ">" (more) a //toggle// between "more" and "less" instead of displaying "more" and then replacing it with extra commands when clicked. It also displays the extra toolbar commands on a separate line (instead of inline), so that the more/less command will always be the last item in the regular tiddler toolbar and the added commands are more visually distinct.
This change has been successfully implemented as a TiddlyTools CoreTweak?. see http://www.TiddlyTools.com tiddler toolbars for a working example.
merge(config.macros.toolbar,{
moreLabel: "more",
morePrompt: "Show additional commands",
lessLabel: "less",
lessPrompt: "Hide additional commands",
});
config.macros.toolbar.onClickMore = function(ev)
{
var e = this.nextSibling;
var showing=e.style.display=="block";
e.style.display = showing?"none":"block";
this.innerHTML=showing?config.macros.toolbar.moreLabel:config.macros.toolbar.lessLabel;
this.title=showing?config.macros.toolbar.morePrompt:config.macros.toolbar.lessPrompt;
return false;
};
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

