README.md in dynaspan-0.0.7 vs README.md in dynaspan-0.0.8
- old
+ new
@@ -48,12 +48,11 @@
As of version 0.0.6 a class will be dynamically added/removed to a div tag containing the class "dyna-span".
That class is "ds-content-present". The purpose of this class is to allow CSS content styles depending on
whether your text exists or not. The '[edit]' text you can use as a parameter normally drops below the input
box. If you don't want it to drop you can style it with the proper CSS selector for content present. E.G.
`.ds-content-present > dyna-span-edit-text { margin-top:-18px; }` You can set the height to whatever your input
-field height is to maintain the position of the edit text. With jQuery you can also set style for
-hidden and visible changes.
+field height is to maintain the position of the edit text.
In version 0.0.7 I've added a class to the parent div object for when the text field dialog is open. The class
is "ds-dialog-open". This is also to use in CSS styles. This feature was added since CSS doesn't support
calling parents with selectors. Example usage:
@@ -64,9 +63,25 @@
.ds-dialog-open > .dyna-span-edit-text {
margin-top:-24px;
}
```
+
+###What's New
+
+####Version 0.0.8
+
+You can now provide an option hash as a last parameter. Current
+valid options only include:
+
+ {
+ hidden_fields: { label: "value" }
+ }
+
+You can add as many hidden fields to your Dynaspan objects as you'd like.
+
+Also the id parameter will only be passed to the server if it exists. (No more empty
+string for id.) This allows you to create "new" polymorphic child objects with Dynaspan.
###License
The MIT License (MIT)