A lightweight jQuery plugin for complex two-way
data binding in real time.
jQuery.my is a plugin for real time two-way data binding. It mutates object given as data source, reflecting interactions between user and UI.
Data bindings, facade appearance and CSS styling of an app are all defined using single manifest, which is standard javascript object. Manifests are JSONable.
jQuery.my recognize both standard HTML controls and complex composites created using rich ui plugins. Controls built with jQuery UI, Select2, CodeMirror, Ace, Redactor, CLeditor, jQuery Mobile are supported out of the box.
jQuery.my provides comprehensive validation, conditional formatting, complex dependencies, runtime form structure manipulation. $.my forms can run nested, each jQuery.my instance can be a composite control for parent form.
Syntax of $.my manifest is very simple, lean and unobtrusive. There exist specialized in-browser IDE for $.my apps authoring. This IDE is a built-in component of cloudwall.me system.
Use Code button to edit source code of examples. Use Run button to exec your edits. To mention, code editors and sandboxes are also $.my apps.
Data is loaded when app starts, and then indexed locally for faster search. All texts in the table are clickable.
Stats source – www.av1611.org. Range control is built using jQuery UI Slider.
Carta Marina is 500 years old map of North Europe. jQuery UI Draggable plugin applied to manage loupe drag.
Mobile platforms may fail to show 5x zoom – image is too large for mobile browsers, sorry.
All control points are draggable, jQuery UI Draggable plugin is applied to manage them.
This demo reflects data to localStorage. Reload page – curve shape remains the same.
Use handles to drag pages and blocks around. Layout you build is continuously stashed under AdLayout
key into localStorage, so you can reload page and take your layout back.
Application itself (without HTML and CSS) is ~100 sloc long and contains 3 nested manifests – app, page and block. Draggable items are built with jQuery UI Sortable.
This example is built using specs of TodoMVC project. Below code is the shortest implementation. Standalone version – jQuerymy.com/todomvc.
The form also illustrates how $obj.modal()
works. Click control’s type to popup control’s init code.
To run any demo as a standalone page just wrap manifest with this code:
An entire set of libs is ~265 Kb gzipped, $.my takes 25Kb.
Plugin set cw.plugins.js incorporates a lot of ui libs, not necessary needed in every single app. Minimal set of libs required to run $.my forms is <100Kb gzipped.
jQuery 1.11.0 | jQuery. Migrate toolkit also included. Required. |
Sugar.js 1.4.1 | A library that extends native js objects with helpful methods. Required. |
jquerymy 1.1.4 | jQuery.my |
jQuery.tags | A plugin to show tag lists. |
jQuery UI 1.11.1 | jQuery UI is a curated set of user interface interactions, effects, widgets, and themes. |
jQuery TouchPunch | Translates touch events into clicks. |
Redactor 8.25 | WYSIWYG editor, slightly modified version (two minor bug fixes). |
CodeMirror 3.21 | CodeMirror is a versatile code editor. Javascript prettifier included. |
JCrop | Library providing image cropping functionality. |
jQuery list | Plugin to manage long complex lists. |
niceScroll 3.5.4 | Plugin that generates nice thin scrollbars |
Select2 3.2.0 | Plugin to render dropdowns and YouTube-style tag selectors |
jQuery.my is licensed under MIT.
© 2015 ermouth