[tw] Re: [TWC] Basic button plugin help?
Hey! The CSS should go to the Stylesheet. If you'll be doing a plugin, I suggest setting up your own shadow tiddler stylesheet like this: config.shadowTiddlers.ExpirationDateStylesheet = /*{{{*/\n + .ExpirationButton {border: 1px solid black; margin: 0 10px;}\n + .ExpirationText {color: black; font-weight: bold;}\n + /*}}}*/; store.addNotification(ExpirationDateStylesheet, refreshStyles); That's one of my short ones. As you can see, the CSS classes are set up the same as for any HTML page: .ClassName {property: value; property: value; property: value;} And yes, you just use the CSS class name as the fifth parameter in the createTiddlyButton function. Don't forget to put it between quotes. w On Saturday, August 16, 2014 3:59:51 AM UTC+2, Antaeus Feldspar wrote: Ton, Mario - thank you! Even knowing it was TWC code, it took me quite a while to get through the block I was having understanding the code. What finally changed was realizing that the part I was blocked on wasn't part of jQuery's syntax (which I've found quite hard to grasp). It was in fact an Immediately Invoked Function Expression (extensively used by jQuery, but not specific to it)! I'm quite optimistic that with this as a model, I can start producing the buttons I need. One question I still have: if I want the buttons produced by the plugin to have particular CSS properties, I presume I employ a CSS selector to recognize the className passed as the fifth argument to the createTiddlyButton. Where should that CSS selector go, however? And what form should it take? -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TWC] Basic button plugin help?
Hi Antaeus, May be this one? http://helloworld.tiddlyspace.com/ Cheers, Ton On Friday, August 15, 2014 1:29:27 PM UTC+2, Antaeus Feldspar wrote: So, there used to be an excellent page on one of the guidance sites, I think it was tiddlywiki.org, which showed two version of a hello world! plugin. The first just made a hello world! macro; the second made a tiddlybutton that would call a hello world! method when the button was pressed. I thought I had this page saved, but it looks like not, and I need its guidance; I need to know the right way to write a plugin that creates tiddlybuttons (and I also need to know the right way to get those buttons styled, but obviously that's less important.) I'm sorry if this message should be on TiddlyWikiDev instead, but it seemed way too basic a query for the sort of high-level stuff they're discussing there. Because I used to have that page, I know it's simple, but that doesn't tell me what it *is*... -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TWC] Basic button plugin help?
Ton - that one looks like it'll be very useful, though it's not the one that I was looking for. I actually ran across that one earlier, but I didn't realize it was applicable to TWC; it looked like it was TW5 - partly because of the look, and partly because it uses JQuery. Is jQuery now part of the TWC core? I've tried to get a handle on it many times, without much success. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TWC] Basic button plugin help?
Ton - that one looks like it'll be very useful, though it's not the one that I was looking for. I actually ran across that one earlier, but I didn't realize it was applicable to TWC; it looked like it was TW5 - partly because of the look, and partly because it uses JQuery. Is jQuery now part of the TWC core? I've tried to get a handle on it many times, without much success. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TWC] Basic button plugin help?
Hi Antaeus, TW classic uses jQuery, as far as I know already a long time. Cheers, Ton On Friday, August 15, 2014 7:18:40 PM UTC+2, Antaeus Feldspar wrote: Ton - that one looks like it'll be very useful, though it's not the one that I was looking for. I actually ran across that one earlier, but I didn't realize it was applicable to TWC; it looked like it was TW5 - partly because of the look, and partly because it uses JQuery. Is jQuery now part of the TWC core? I've tried to get a handle on it many times, without much success. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TWC] Basic button plugin help?
Hi, I did some videos, that describe, how to create TWC plugins. see: https://www.youtube.com/watch?v=J5tq5xv0FHUlist=PL19F78517CB1EDC08 Number 2 and 3 contain info, how TW plugins work. have fun! mario -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TWC] Basic button plugin help?
Ton, Mario - thank you! Even knowing it was TWC code, it took me quite a while to get through the block I was having understanding the code. What finally changed was realizing that the part I was blocked on wasn't part of jQuery's syntax (which I've found quite hard to grasp). It was in fact an Immediately Invoked Function Expression (extensively used by jQuery, but not specific to it)! I'm quite optimistic that with this as a model, I can start producing the buttons I need. One question I still have: if I want the buttons produced by the plugin to have particular CSS properties, I presume I employ a CSS selector to recognize the className passed as the fifth argument to the createTiddlyButton. Where should that CSS selector go, however? And what form should it take? -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.