diff --git a/CHANGELOG b/CHANGELOG index e4cf94e..9e826ac 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,9 @@ = TopUp CHANGELOG +== Version 1.6.9 (February 2, 2010) + +* Introduced the toption 'storeCurrent' and TopUp.restore(). This enables you to 'store' the currently displayed content when rendering new content. As the function name describes: calling TopUp.restore() restores the stored content. Please note that this function still needs to be tweaked a bit. Storing multiple isn't possible at the moment (to be continued). + == Version 1.6.8 (January 25, 2010) * Fixed bug when calling TopUp.display() with type: 'html' diff --git a/app/views/layouts/_secondary.html.erb b/app/views/layouts/_secondary.html.erb index 3c3b004..39d7f0e 100644 --- a/app/views/layouts/_secondary.html.erb +++ b/app/views/layouts/_secondary.html.erb @@ -1,7 +1,7 @@
+ You can implement TopUp just by adding a TopUp class to a HTML element. + There are multiple TopUp classes of which you can choose from. +
++ For TopUp with default settings, just use 'top_up'. + You can also compose the TopUp class which specifies certain TopUp settings. +
++ When composing you can specify: +
+
+ The composed TopUp class has to begin with 'tu_' followed by the settings joined with underscores.
+ As an example, use 'tu_ql_iframe' for a TopUp with the 'quicklook' layout and the 'iframe' type.
+
+ Specifying a TopUp preset is just like specifying style attributes to a CSS selector in your stylesheet. + The great advantage of using presets is that it provides you to keep your HTML entirely(!) clean. +
+
+ Just call TopUp.addPresets()
with a hash as parameter.
+ The key of each entry has to be a CSS selector and the value has to be a hash of toptions.
+
+ Other than TopUp classes or presets, you can also use plain old options to customize your TopUp element (so called toptions). +
+
+ Just add the toptions
attribute to your TopUp element.
+ A toption is specified as "[name] = [value]", use the comma (",") as a seperator between toptions.
+
+ Specifying a TopUp preset is just like specifying style attributes to a CSS selector in your stylesheet. + The great advantage of using presets is that it provides you to keep your HTML entirely(!) clean. +
+
+ Just call TopUp.addPresets()
with a hash as parameter.
+ The key of each entry has to be a CSS selector and the value has to be a hash of toptions.
+
+ So for grouping links, just specify group: [name]
in the preset.
+
+ Just add a toptions
attribute with "group = [name]" to your TopUp elements.
+
+ You must be thinking: "Great, I've downloaded TopUp! But now what?". No need to worry, this download is provided with examples and instructions regarding the usage of the library. +
++ I have put a lot of examples in the examples directory. They are all implemented with this setup. +
++ Please note that this page is implemented with this setup. I assume hosting TopUp will not be a problem. +
++ Remember: You can still use Prototype without having conflicts, just make sure you include TopUp first. +
+