https://github.com/gwendall/meteor-form-data-binder
Bind parsed form and input data to Session variables
https://github.com/gwendall/meteor-form-data-binder
Last synced: 2 months ago
JSON representation
Bind parsed form and input data to Session variables
- Host: GitHub
- URL: https://github.com/gwendall/meteor-form-data-binder
- Owner: gwendall
- Created: 2014-08-10T10:52:58.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-23T10:17:19.000Z (over 10 years ago)
- Last Synced: 2025-03-18T05:56:56.170Z (3 months ago)
- Language: JavaScript
- Size: 196 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Form-Data Binder
===================Bind parsed form and input data to Session variables
Installation
------------Install using Meteorite. When in a Meteorite-managed app directory, enter:
``` sh
$ mrt add form-data-binder
```See it in action
----------------Demo: [http://form-data-binder-demo.meteor.com](http://form-data-binder-demo.meteor.com)
Code: [https://github.com/Gwendall/meteor-form-data-binder-demo](https://github.com/Gwendall/meteor-form-data-binder-demo)
Usage
-----Declare any form or input DOM element with a session-bind attribute, with the Session variable name to attach it to.
``` sh
```
Any change in the form will store its data as a JSON object in the "someSessionProperty" property of the Session variable.
``` sh
Session.get("someSessionProperty")>> {
someField: "typedText",
someOtherField: "otherTypedText"
}
```